How to make matlab output a matrix in engineering notation?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Leonardo Elizondo
am 25 Apr. 2019
Beantwortet: Walter Roberson
am 25 Apr. 2019
I am tryign to make matlab output a matrix for me in a notation so it shows me numbers inside the matrix with its own notation.
every time I make a matrix it outputs it as:
1.0e+09 *
0.6750 0.4938 0.4115
0.4938 2.3209 0.4115
0.4115 0.4115 0.5021
lets say some of the numbers are a lot smaller than the others it will give me something like
1.0e+09 *
0.6750 0.4938 0.4115
0.4938 2.3209 0.4115
0.0000 0.0000 0.5021
When in fact they are not 0.0000 it's just a lot smaller than the rest.
how would I make matlab give me this matrix showing me the numbers that are supressed? It can be in engineering notation for every value inside of the matrix or anyway you would like, as long as i can see what numbers those are.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Apr. 2019
Give the command
format short e %engineering notation always
or
format short g %most convenient notation
To get more digits use "long" instead of "short"
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!