convert text like '(18)' to number
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
is there simple way to extract this text and convert to number?
0 Commenti
Risposte (1)
Walter Roberson
il 8 Nov 2019
S = '(18)';
value = sscanf(S, '(%f' )
You can get more complicated, like,
S = '(18,-3.8)';
value = sscanf(S, '(%f,%f)');
0 Commenti
Vedere anche
Categorie
Scopri di più su Text Data Preparation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!