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

2 次查看(过去 30 天)

采纳的回答

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

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

产品


版本

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by