How do I change the format of the numbers displayed in the MATLAB report generator?

3 views (last 30 days)

Accepted Answer

MathWorks Support Team
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');

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products


Release

R2008a

Community Treasure Hunt

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

Start Hunting!