How do I change the format of the numbers displayed in the MATLAB report generator?
3 views (last 30 days)
Show older comments
I would like to change the format of the numbers represented in a table in a MATLAB report generator.
Accepted Answer
MathWorks Support Team
on 19 Jun 2012
There are two ways to change the format of the numbers representated with MATLAB Report Generator.
1) The MATLAB Report Generator honors the format of the MATLAB workspace. So, setting the display format at the MATLAB command prompt will change the display in the report.
2) The numbers can be typecasted to strings using the function NUM2STr and specifying the format of the representation. A simple example illustrating this concept is given below:
str = num2str(pi,'%6f');
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Report Generator 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!