Split numbers in a cell into a few columns in V2011
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have data that is not well formated:
"$# secid elform shrf qr/irid cst scoor nsm
2 5 0.866000 2 1
$# ts1 ts2 tt1 tt2
$ 2.439000 2.439000 1.939000 1.939000"
I read each line of the data into a cell in a matrix.
Now, I want to split the numbers in the cell to a different matrix.
For example, from " 2 5 0.866000 2 1"
To: [2, 5 , 0.866000, 2, 1]
It seems like "split" is the function for it, but it is only available after V2016, but I have V2011. Any idea how I can do this in the old version?
Thanks!
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!