help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monitoring iterations


From: antonio palestrini
Subject: Re: monitoring iterations
Date: Mon, 20 Aug 2007 01:45:49 +0200

Thank you all for answering so quickly,
the "more off" switch works,
while "fflush();"
produces the following error (both on my mac and linux)
--------------------------
for t = 1:10
  disp(t);
  fflush ();
endfor
1

*** fflush:

 -- Built-in Function:  fflush (FID)
     Flush output to FID.  This is useful for ensuring that all
     pending output makes it to the screen before some other event
     occurs.  For example, it is always a good idea to flush the
     standard output stream before calling `input'.

     `fflush' returns 0 on success and an OS dependent error value
     (-1 on unix) on error.
   See also: fopen, fclose.



error: evaluating for command near line 18, column 1
------------------------


Antonio


2007/8/20, Kim Hansen <address@hidden>:
> On 8/20/07, antonio palestrini <address@hidden> wrote:
> >
> > I realized that it is useless since octave (2.1.72 and 2.9.13 on a
> > mac) ends the loop
> > before to print the numbers. In other terms,  it prints the loop
> > numbers only at the end of the iteration and not during it.
> > Did anyone note this behavior and know how to solve it?
>
> My guess is that you have pagination turned on, this causes octave to
> wait for the for loop to complete before it shows any output, turn it
> of with "more off".
>
> --
> Kim Hansen
> Vadgårdsvej 3, 2.tv
> 2860 Søborg
> Fastnet: 3956 2437  --  Mobil: 3091 2437
>


-- 
Prof. Antonio Palestrini
DSGSS - University of Teramo, Italy
e-mail: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]