String to Cells

バージョン 1.1.0.1 (1.43 KB) 作成者: Cole Stephens
Split a single string into a cell array.
ダウンロード: 2.5K
更新 2016/9/1

ライセンスの表示

Take a single string and separate out individual "elements" into a new cell array. Elements are defined as non-blank characters separated by spaces.
Similar to str2cell, except str2cell requires an array of strings. str2cells requires only 1 string.

Example: Consider the following string in the workspace:
aString = ' a b c d efgh ij klmnopqrs t u v w xyz '

>> newCell=str2cells(aString)'

newCell =

'a'
'b'
'c'
'd'
'efgh'
'ij'
'klmnopqrs'
't'
'u'
'v'
'w'
'xyz'

引用

Cole Stephens (2024). String to Cells (https://www.mathworks.com/matlabcentral/fileexchange/6054-string-to-cells), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14SP1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCharacters and Strings についてさらに検索
謝辞

ヒントを与えたファイル: rsplit

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.1

Updated license

1.1.0.0

Updated License Info.

1.0.0.0