help-octave
[Top][All Lists]
Advanced

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

Re: Printing during a loop


From: Jonathan C. Webster
Subject: Re: Printing during a loop
Date: Wed, 13 Jun 2001 18:15:00 -0400

Arlan Lucas de Souza wrote:

> Hi all
>
> I'd like to print a vector's content during a loop to keep track the
> calculation process. So I've tried:
>
> 1) extract the ";" at the end of the vector assignment command,
> 2) write the vector's name alone in a line without ";" at the end of line,
> 3) an also use the disp command.
>
> but these not work. Octave only prints the vector's contents history at
> the end of my program execution.

You can do it unbuffered.

    str1 = sprintf("Blah blah: %f and %f \n" ,var1, var2);
    fputs(FID,str1);
Jonathan




-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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