Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to read numbers from this mat file ?

1 visualización (últimos 30 días)
Karthik
Karthik el 17 de Jul. de 2015
Editada: Stephen23 el 17 de Jul. de 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.

Respuesta aceptada

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

Más respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by