Convert an array into floating numbers
13 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Matt J
2013 年 6 月 11 日
編集済み: Matt J
2013 年 6 月 11 日
Use STR2DOUBLE or STR2NUM.
10 件のコメント
Matt J
2013 年 6 月 11 日
編集済み: Matt J
2013 年 6 月 11 日
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.
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!