Determine current format in command window

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.

 采纳的回答

get(0,'Format')

3 个评论

As explained in "doc format"...
But as not explained in "help format". Sadly, old habits die hard. :-)
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?!

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by