Seperate string and number
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
garima sharma
am 3 Jun. 2022
Beantwortet: Stephen23
am 3 Jun. 2022
I am reading data through serial port with a format below (char). ADC1: 123.7834 1.0139 How to separate the data? I want 123.7839 in one coloum and 1.0139 in other coloum. All are separated by space.
0 Kommentare
Akzeptierte Antwort
Stephen23
am 3 Jun. 2022
T = 'ADC1: 123.7834 1.0139';
V = sscanf(T,'ADC1:%f%f',[2,Inf]).'
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!