help-octave
[Top][All Lists]
Advanced

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

FW: disp in a cycle?


From: A. Scottedward Hodel
Subject: FW: disp in a cycle?
Date: Wed, 01 Sep 1999 12:10:26 -0500

Or, 

page_screen_output=0
for i=1:10
  ...
endfor
page_screen_output=1

--
A S Hodel Assoc. Prof. Dept Elect Eng, Auburn Univ,AL  36849-5201
On leave at NASA Marshall Space Flight Center (256) 544-1426
Address until 15 Mar 2000:Mail Code TD-55, MSFC, Alabama, 35812
http://www.eng.auburn.edu/~scotte

----------
>From: Stefano Ghirlanda <address@hidden>
>To: Mikhail Zotov <address@hidden>
>Subject: Re: disp in a cycle?
>Date: Wed, Sep 1, 1999, 10:52 AM
>

> Hi,
>
>> Suppose my program contains the lines:
>>
>> for i=1:10
>>     disp(i)
>>     <some operators>
>> endfor
>>
>> Thus, I'd like to have the number of the current step displayed
>> while the cycle goes on.  But it happens that first the cycle
>> runs "silently", but when it is already over I get a column of
>> 1
>> ...
>> 10
>>
>> How can I fix this behavior?
>
> disp(i)
> fflush(stdout)
>
> (stdout is buffered)
>
> Cheers,
> Stefano
>
>  Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
>     Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
> Phone: +46 8 164055, Fax: +46 8 167715, Email: address@hidden
>    Support Free Science, look at: http://rerumnatura.zool.su.se
>
>
>
> ---------------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.  To ensure
> that development continues, see www.che.wisc.edu/octave/giftform.html
> Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
> ---------------------------------------------------------------------
> 



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

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