How to display data in a matrix with more than four decimal places

Is 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 decimal places?

+5
matlab number-formatting
source share
1 answer

type matlab at the prompt:

 >> help format 

I think you want to execute the "FORMAT LONG" command before executing the script.

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

+8
source share

All Articles