How to extract value from a messy text file?
Mostrar comentarios más antiguos
I would like to extract the mass value that is in the file. I did not figure out a way to do this using textscan.
Respuestas (1)
Walter Roberson
el 18 de Nov. de 2017
S = fileread('Massa.txt');
mass = str2double( regexp(S, '(?<=''mass'':\s*)[^, ]+', 'match', 'once') );
1 comentario
Matheus
el 18 de Nov. de 2017
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!