From help-octave-request at bevo dot che dot wisc dot edu Wed Jan 9 03:09:38 2002 Subject: RE: a question about octave From: (Ted Harding) To: Claudio Scherer Cc: help-octave at bevo dot che dot wisc dot edu 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, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) 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: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------