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)
Ältere Kommentare anzeigen
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
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)
0 Kommentare
Weitere Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!