Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
How to read numbers from this mat file ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Karthik
le 17 Juil 2015
Modifié(e) : Stephen23
le 17 Juil 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.
Réponse acceptée
Azzi Abdelmalek
le 17 Juil 2015
Modifié(e) : Azzi Abdelmalek
le 17 Juil 2015
a=regexpi(text,'(?<==)[-+\d]+(.)?([\d-+ث]+)?','match','once') id=~cellfun(@isempty,a(:,1)) b=a(id) out=str2double(b)
0 commentaires
Plus de réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!