필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to read numbers from this mat file ?

조회 수: 1 (최근 30일)
Karthik
Karthik 2015년 7월 17일
편집: Stephen23 2015년 7월 17일
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.
  댓글 수: 1
Stephen23
Stephen23 2015년 7월 17일
편집: Stephen23 2015년 7월 17일

채택된 답변

Azzi Abdelmalek
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개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by