what does format short in a matlab code do??
21 views (last 30 days)
Show older comments
Format short
0 Comments
Accepted Answer
DGM
on 29 Nov 2021
Edited: DGM
on 29 Nov 2021
It just changes the display format used when numbers are printed to console.
format long
pi
format short
pi
There are other options. See help format for more info. I should point out though that it's strictly a display formatting tool. The numbers themselves aren't changed.
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!