Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 427
astre Avatar asked Feb 22 '10 14:02

astre


1 Answers

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.

like image 104
vicatcu Avatar answered Sep 25 '22 00:09

vicatcu