help-octave
[Top][All Lists]
Advanced

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

Re: enabling immediate output behavior


From: Francesco Potortì
Subject: Re: enabling immediate output behavior
Date: Mon, 19 Oct 2009 22:51:04 +0200

>    a=0;
>    for i=1:5000
>    a=a+1
>    end
>    a;
>
>
>When I run this loop in octave, no output is sent to the terminal till 
>the very last function evaluation has been performed.

Try this one:

    a=0; for i=1:5000
    a=a+1; disp (a);
    endfor

It will output 5000 lines showing the values assigned to a.

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


reply via email to

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