Values over 1000 use e
6 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
ME
2019-12-16
For the first part of your question, you can use:
format longG
which will allow you to see the maximum possible number of digits without resorting to scientific notation. At some point though, very large numbers will still appear in scientific notation - which is unavoidable.
The second part is that you can just use:
round(A,2)
to round all values of an array A to two decimal places.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!