how to Display data in matrix with with more than 4 decimals

廉价感情. 提交于 2019-11-27 07:50:30

问题


He,

My question is about this matlab output:

>>model3.Mu

ans =

0.7677    -1.1755   -0.8956

-0.0100    0.0883    0.0235

0.0001    -0.0010   -0.0003

-0.0000    0.0000    0.0000

How to display this data in a 4x3 matrix with more than 4 decimals?


回答1:


type at the matlab prompt:

>> help format

I think what you want to do is issue the command "FORMAT LONG" before you execute your script.

You can also print the matrix out to arbitrary precision using fprintf in a loop.



来源:https://stackoverflow.com/questions/2311520/how-to-display-data-in-matrix-with-with-more-than-4-decimals

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!