[Top][All Lists]

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

RE: a question about octave

From: Ted Harding
Subject: RE: a question about octave
Date: Wed, 09 Jan 2002 00:50:14 -0000 (GMT)

On 08-Jan-02 Claudio Scherer wrote:
> As a former user of MATLAB, I use, in long script files,
> to have the system telling me where it is, by writing values
> of some variables during the execution of the programs.
> In MATLAB I simple insert the name of the variable in the
> program without putting the semicolon at the end of the line.
> In OCTAVE this does not work. How can I circumvent this problem?
> In other words, how can I make the computer send me
> messages during the calculation?

Hi Claudio,
You need to flush the "stdout" buffer, which is sent to
the pager. Normally, you will only see the output when the
pager has a screen-full. If you flush it, the current
contents are displayed immediately.

For instance, try

  octave:1> for i=1:10
  >   i
  >   fflush(stdout);
  >   pause(5);
  > endfor

I think you will find that this does what you want.

Best wishes,

E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 167 1972
Date: 09-Jan-02                                       Time: 00:50:14
------------------------------ XFMail ------------------------------

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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