How do I change the format of the numbers displayed in the MATLAB report generator?
2 次查看(过去 30 天)
显示 更早的评论
I would like to change the format of the numbers represented in a table in a MATLAB report generator.
采纳的回答
MathWorks Support Team
2012-6-19
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!