Comma separated value to vector
10 ビュー (過去 30 日間)
古いコメントを表示
Matthew Tyler Jeffries
2019 年 5 月 9 日
コメント済み: Matthew Tyler Jeffries
2019 年 5 月 9 日
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 件のコメント
採用された回答
Stephen23
2019 年 5 月 9 日
>> S = '11,333,4445,2,78,2399';
>> V = sscanf(S,'%f,',[1,Inf])
V =
11 333 4445 2 78 2399
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!