MATLAB Answers

the cyclist

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

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?!


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today