フィルターのクリア

convert string to cell

2 ビュー (過去 30 日間)
shaz
shaz 2012 年 11 月 15 日
i have a cell like
a = {'a;b;c;d;e;f;g;h'} % size is 1*1
how to place elements in to individual cell of a
output size = 1*8
  2 件のコメント
Jan
Jan 2012 年 11 月 15 日
The question is not unique: Do you want to get {'a', 'b', 'c'} or {'a;', 'b;', 'c;'}?
Jan
Jan 2012 年 11 月 27 日
It would be friendly to answer questions for clarifications. Otherwise it seems, like you are not interested in your own answers. This will reduce the motivation of others to answer your questions.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 15 日
編集済み: Azzi Abdelmalek 2012 年 11 月 15 日
b=regexp(a,';','split')
b{:}

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by