フィルターのクリア

How do you use strsplit

4 ビュー (過去 30 日間)
Amanda
Amanda 2022 年 11 月 2 日
回答済み: Image Analyst 2022 年 11 月 2 日
I need to use strsplit to transform txt data into a cell array but i dont know how to do this
  2 件のコメント
Matt J
Matt J 2022 年 11 月 2 日
What about the examples in the strsplit documentation?
KSSV
KSSV 2022 年 11 月 2 日
Show us your text.

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

回答 (1 件)

Image Analyst
Image Analyst 2022 年 11 月 2 日
For example
s = 'I need to use strsplit to transform txt data into a cell array but i dont know how to do this';
words = strsplit(s, ' ')
words = 1×21 cell array
{'I'} {'need'} {'to'} {'use'} {'strsplit'} {'to'} {'transform'} {'txt'} {'data'} {'into'} {'a'} {'cell'} {'array'} {'but'} {'i'} {'dont'} {'know'} {'how'} {'to'} {'do'} {'this'}

カテゴリ

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