Thread Subject:
'rewind' the command window?

Subject: 'rewind' the command window?

From: Thomas Clark

Date: 6 Nov, 2009 17:14:04

Message: 1 of 2

I currently have a piece of code which runs for a long time.

Rather than leaving the command window blank, I like to update the user with a progress message after every iteration.

However, using the disp() command, over ~20000 iterations, any warning messages that come up are swamped by the progress indicator lines.

Is there any way that I can 'rewind' the command window, and reprint the previous line with an updated progress status?

Thanks for any help!

Tom Clark

Subject: 'rewind' the command window?

From: someone

Date: 6 Nov, 2009 17:30:18

Message: 2 of 2

"Thomas Clark" <t.clark@remove.spamcantab.net> wrote in message <hd1lgr$rgd$1@fred.mathworks.com>...
> I currently have a piece of code which runs for a long time.
>
> Rather than leaving the command window blank, I like to update the user with a progress message after every iteration.
>
> However, using the disp() command, over ~20000 iterations, any warning messages that come up are swamped by the progress indicator lines.
>
> Is there any way that I can 'rewind' the command window, and reprint the previous line with an updated progress status?
>
> Thanks for any help!
>
> Tom Clark

% Perhaps usiung the diary command might help?

doc diary

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us