フィルターのクリア

split character strings into cell arrays without delimiter

1 回表示 (過去 30 日間)
Sumara
Sumara 2023 年 11 月 21 日
回答済み: Voss 2023 年 11 月 21 日
I have a 10 x 100 character array that I would like to change into a 10 x 100 cell array.
e.g.
'AEADHF'
'TYESDF'
into
'A' 'E' 'A' 'D' 'H' 'F'
'T' 'Y' 'E' 'S' 'D' 'F'

採用された回答

Voss
Voss 2023 年 11 月 21 日
ch = ['AEADHF';'TYESDF']
ch = 2×6 char array
'AEADHF' 'TYESDF'
C = num2cell(ch)
C = 2×6 cell array
{'A'} {'E'} {'A'} {'D'} {'H'} {'F'} {'T'} {'Y'} {'E'} {'S'} {'D'} {'F'}

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by