How to read only numerical values of serial output data in MATLAB?
Mostra commenti meno recenti
I just want to read the integer values (number) in the output text file (serial data)...... I need some assistance.....
Risposta accettata
Più risposte (2)
Yongjian Feng
il 6 Nov 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 Commento
Sohail Ahmed
il 8 Nov 2021
Modificato: Sohail Ahmed
il 8 Nov 2021
Sohail Ahmed
il 10 Nov 2021
0 voti
1 Commento
Walter Roberson
il 10 Nov 2021
Please remember to Accept the solution that worked for you.
Categorie
Scopri di più su Large Files and Big Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!