Convert an array into floating numbers
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I have an dataset(49 by 9). I want to convert an array(49 by 1) in the dataset from exponential notation (e.g 1.003 e +03) into floating numbers.
0 Kommentare
Antworten (1)
Matt J
am 11 Jun. 2013
Bearbeitet: Matt J
am 11 Jun. 2013
Use STR2DOUBLE or STR2NUM.
10 Kommentare
Matt J
am 11 Jun. 2013
Bearbeitet: Matt J
am 11 Jun. 2013
When I open the dataset
You mean when you open it in the Variable Editor? Under the "View" menu, and within that under the "Numeric Array Format" menu there are options to change the way numbers are displayed (short, long, etc...). It is very similar to the FORMAT command.
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!