How to split string
古いコメントを表示
Hi,
I have the below cell array and want to split at common dilimiter of the specified column.
Group Sub_group Name Date Value
Group1 S1Gp11 HATU R2016-06-01_00 1
Group1 S1Gp11 HATU R2016-06-01_01 1
Group2 J1Gp21 LARU R2016-06-02_01 0
I want to split at "_" and retain everything before "_".
Desired Output:
Group Sub_group Name Date Value
Group1 S1Gp11 HATU R2016-06-01 1
Group1 S1Gp11 HATU R2016-06-01 1
Group2 J1Gp21 LARU R2016-06-02 0
3 件のコメント
Adam Danz
2019 年 6 月 27 日
It looks like a table, are you sure it's a cell array? Is it a 4x5 cell array?
Mekala balaji
2019 年 6 月 27 日
Adam Danz
2019 年 6 月 27 日
Ok, good. See the example in my answer below and feel free to follow-up with any problems or questions.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!