Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

R2011a doesn't scroll command window automatically on fprintf?

Asked by Joachim Vandekerckhove on 27 Jun 2011

The behavior of the Command Window in R2011a seems to have changed so that it doesn't automatically scroll to the bottom on a line feed if MATLAB is busy.

If I run this in my shiny new MATLAB 7.12.0.635:

clc, for a=1:100,fprintf('%i\n',a);pause(0.1);end

... the counter will just run down to the bottom of my CW and then keep going while the vertical scroll bar grows. My dull ol' 7.11.0.584 (R2010b) and my linux version (either release) don't do that; there the command window scrolls down on a line feed. Is that intentional new behavior or a bug? If it is a feature, how do I control it?

Edit: Okay, I'm pretty sure it's a feature. If whatever is in the loop isn't terribly computationally expensive and not calling system commands or mex code, it actually lets me choose between freezing the scrolling or letting it go by moving the scroll bar (i.e., if the scroll bar is at the bottom, it updates as it used to). Seems like this just doesn't always work.

Edit2: Also, that trick to control it only works on Windows 7.

0 Comments

Joachim Vandekerckhove

Products

No products are associated with this question.

1 Answer

Answer by the cyclist on 27 Jun 2011

This answer only helps you if misery loves company. I've noticed the same command window scrolling differences, although I have not tried to pin down the exact circumstances.

0 Comments

the cyclist

Contact us