Separate strings w.r.t to semicolon
古いコメントを表示
i have a string like below in one cell(one row & one column)
a;b;c;d;f;e;g;t;y;s
i would like to separate in to individual cells with reference as ;
採用された回答
その他の回答 (1 件)
Sachin Ganjare
2012 年 10 月 23 日
0 投票
str = 'a;b;c;d;f;e;g;t;y;s';
Out = strread(str,'%s','delimiter',';');
Hope it helps!!!
2 件のコメント
Jan
2012 年 11 月 27 日
Unfortunately STRREAD is deprecated and will vanish in a future Matlab release. I cannot imagine, why removing such important functions is helpful for anything.
Walter Roberson
2012 年 11 月 27 日
Out = textscan(str, '%s', 'delimiter', ';');
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!