Creating a new string matrix
17 ビュー (過去 30 日間)
古いコメントを表示
Can ['abc';'ef';'xyz'] be used to create a new string matrix
1 件のコメント
採用された回答
その他の回答 (1 件)
Bruno Luong
2018 年 10 月 15 日
編集済み: Bruno Luong
2018 年 10 月 15 日
I will pad appropriate number of ascii-0 characters to the tail of the shorter strings to make them a matrix.
>> char({'abc';'ef';'xyz'})
ans =
3×3 char array
'abc'
'ef '
'xyz'
>>
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!