Group string based on charachter
Mostra commenti meno recenti
Hi all If i have a string lets say a='1/23s' is there a way to take 1 and 23s seperately on some other variables so i can then extract only the numbers from them.
Risposta accettata
Più risposte (1)
Andrei Bobrov
il 7 Dic 2011
str2double(regexp(a,'\d+','match'))
and
regexp(a,'/','split')
Categorie
Scopri di più su Characters and Strings 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!