| MATLAB Central > MATLAB Newsreader > strange behavior of clc + fprintf() in a loop |
|
|
|
Subject: strange behavior of clc + fprintf() in a loop From: Yuval Date: 21 Dec, 2011 22:37:07 Message: 1 of 11 |
|
can anyone explain this strange phenomenon: when running in a loop, calling (clc, fprintf, drawnow) will sometimes cause the Command Window to flash, even though nothing is happening between those commands. |
|
Subject: strange behavior of clc + fprintf() in a loop From: Matt J Date: 21 Dec, 2011 22:56:08 Message: 2 of 11 |
|
"Yuval" wrote in message <jctn2j$kv2$1@newscl01ah.mathworks.com>... |
|
Subject: strange behavior of clc + fprintf() in a loop From: Yuval Date: 21 Dec, 2011 23:08:08 Message: 3 of 11 |
|
> I don't see anything strange, unless the "flash" that you're talking about is the flickering of the printed text. |
|
Subject: strange behavior of clc + fprintf() in a loop From: Matt J Date: 21 Dec, 2011 23:29:08 Message: 4 of 11 |
|
"Yuval" wrote in message <jctoso$qap$1@newscl01ah.mathworks.com>... |
|
Subject: strange behavior of clc + fprintf() in a loop From: Matt J Date: 22 Dec, 2011 14:34:08 Message: 5 of 11 |
|
"Yuval" wrote in message <jctoso$qap$1@newscl01ah.mathworks.com>... |
|
Subject: strange behavior of clc + fprintf() in a loop From: Yuval Date: 22 Dec, 2011 19:02:09 Message: 6 of 11 |
|
> > Why should there be a flicker? (How can I get rid of it?) |
|
Subject: strange behavior of clc + fprintf() in a loop From: Matt J Date: 22 Dec, 2011 19:23:09 Message: 7 of 11 |
|
"Yuval" wrote in message <jcvurh$rdp$1@newscl01ah.mathworks.com>... |
|
Subject: strange behavior of clc + fprintf() in a loop From: Ken Prager Date: 23 Dec, 2011 13:11:01 Message: 8 of 11 |
|
In article <jctn2j$kv2$1@newscl01ah.mathworks.com>, |
|
Subject: strange behavior of clc + fprintf() in a loop From: Yair Altman Date: 24 Dec, 2011 22:24:08 Message: 9 of 11 |
|
Instead of clearing the Command Window, erase just the last message, replacing it with a modified string, as follows: |
|
Subject: strange behavior of clc + fprintf() in a loop From: Yuval Date: 26 Dec, 2011 16:52:08 Message: 10 of 11 |
|
Yes. |
|
Subject: strange behavior of clc + fprintf() in a loop From: Steven_Lord Date: 31 Dec, 2011 05:09:33 Message: 11 of 11 |
|
|
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.
