How to read only numerical values of serial output data in MATLAB?
Mostrar comentarios más antiguos
I just want to read the integer values (number) in the output text file (serial data)...... I need some assistance.....
Respuesta aceptada
Más respuestas (2)
Yongjian Feng
el 6 de Nov. de 2021
Your data file looks like a configuration file with key/value pair separated by ':'. One way to parse the data is to do this for each row:
rowStr = 'ADC0/F1 : 1562';
tokens = split(rowStr, ':');
intValue = str2double(strtrim(tokens(2)));
1 comentario
Sohail Ahmed
el 8 de Nov. de 2021
Editada: Sohail Ahmed
el 8 de Nov. de 2021
Sohail Ahmed
el 10 de Nov. de 2021
0 votos
1 comentario
Walter Roberson
el 10 de Nov. de 2021
Please remember to Accept the solution that worked for you.
Categorías
Más información sobre Large Files and Big Data 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!