help-octave
[Top][All Lists]
Advanced

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

Re: progress meter for long operations


From: Jonathan C. Webster
Subject: Re: progress meter for long operations
Date: Mon, 25 Jun 2001 23:57:50 -0400

Aaron Brick wrote:

> hello all,
>
> does anyone have a good method for announcing progress on long operations? i
> tried putting a printf in a for loop, but it didn't print a thing out until
> it was done,

Use unbuffered writes to a log file and  then watch that.  (tail -f  stuff.log
)
I use code like the following, where FID is the filehandel of your log file.

str1 = sprintf("Blah Blah %d  %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]