[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing Status from .m files
From: |
John Logsdon |
Subject: |
Re: Printing Status from .m files |
Date: |
Mon, 8 Sep 1997 12:06:57 +0100 (BST) |
On Fri, 5 Sep 1997, Andy Adler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> I'm in the process of converting .m files from Matlab to
> octave. Most of the time I find I prefer the way octave does it,
> when there's a difference, but sometimes I'd like the Matlab
> behaviour.
>
> When I have a long function, I often print status messages like
> Foobar: iteration 2 of 666 completed.
>
> In matlab, these show on the screen immediately, but octave waits
> until the control is returned to the user, making the status
> messages useless.
>
> My question is:
>
> Is there any way to force octave to print the text immediately?
>
Andy
The best way I do this in Octave is (a) set page_screen_output=0 as
already suggested and (b) to use sprintf with no semi-colon on
the end. This way you can format your output and it goes straight to the
console.
Good luck
John