Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to read numbers from this mat file ?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, how can I read the numbers from this .mat file (file attached). Currently, I was using the following code. The problem is its reading 2.3*e-4 as only 2.3. The part with e-4 is missing.
a=regexp(text,'(?<==)\d+(.)?(\d+)?','match','once')
id=~cellfun(@isempty,a(:,1))
a=str2double(a(id))
Thanks.
채택된 답변
Azzi Abdelmalek
2015년 7월 17일
편집: Azzi Abdelmalek
2015년 7월 17일
a=regexpi(text,'(?<==)[-+\d]+(.)?([\d-+ث]+)?','match','once') id=~cellfun(@isempty,a(:,1)) b=a(id) out=str2double(b)
댓글 수: 0
추가 답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!