Convert an array into floating numbers
11 次查看(过去 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!