Comma separated value to vector
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Matthew Tyler Jeffries
il 9 Mag 2019
Commentato: Matthew Tyler Jeffries
il 9 Mag 2019
I have a table where the element in the first row of the second column is "11,333,4445,2,78,2399". I would like to take this element, remove the commas, and turn it into a vector v=[11 333 4445 2 78 2399].
0 Commenti
Risposta accettata
Stephen23
il 9 Mag 2019
>> S = '11,333,4445,2,78,2399';
>> V = sscanf(S,'%f,',[1,Inf])
V =
11 333 4445 2 78 2399
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Tables 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!