String parsing
2 ビュー (過去 30 日間)
古いコメントを表示
My text is of the form a='1233.44,56,78,Earth'. Now i want b=1233.44,56,78 and c=Earth. how can i do that?
0 件のコメント
採用された回答
Walter Roberson
2012 年 6 月 2 日
lastc = find(a == ',', 1, 'last');
b = a(1:lastc-1);
c = a(lastc+1:end);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!