Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to read numbers from this mat file ?

1 Ansicht (letzte 30 Tage)
Karthik
Karthik am 17 Jul. 2015
Bearbeitet: Stephen23 am 17 Jul. 2015
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.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 17 Jul. 2015
Bearbeitet: Azzi Abdelmalek am 17 Jul. 2015
a=regexpi(text,'(?<==)[-+\d]+(.)?([\d-+ث]+)?','match','once')
id=~cellfun(@isempty,a(:,1))
b=a(id)
out=str2double(b)

Weitere Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by