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

Determine current format in command window

Asked by the cyclist on 7 Aug 2011

Is it possible to programmatically determine the current format of the command window? I want a program I am writing to use the "bank" format, but then restore the previous format when it has completed.

0 Comments

the cyclist

Tags

Products

No products are associated with this question.

1 Answer

Answer by Fangjun Jiang on 7 Aug 2011
Accepted answer

get(0,'Format')

3 Comments

Jan Simon on 7 Aug 2011

As explained in "doc format"...

the cyclist on 7 Aug 2011

But as not explained in "help format". Sadly, old habits die hard. :-)

Jan Simon on 7 Aug 2011

The different levels of information in HELP and DOC are sometimes disturbing. I've mentioned this mostly to encourage beginners to read both. But why not encourage an advanced MATLAB user also?!

Fangjun Jiang

Contact us