Convert an array into floating numbers
조회 수: 10 (최근 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!