How do I differentiate between integer and floating point numbers in a double array?
조회 수: 8 (최근 30일)
이전 댓글 표시
My requirement is to import data from Excel which has both integer and floating point numbers. For example, 1 and 2.5 I want to differentiate between them. But the Excel import coverts all numeric data into 'double' which is floating point by default.
Any help in this regard is appreciated! Thanks!
댓글 수: 1
José-Luis
2014년 1월 15일
What makes you think 1 is stored as an integer? It might very well be a double.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!