フィルターのクリア

how to change size of a string?

11 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019 年 10 月 12 日
回答済み: Stephan 2019 年 10 月 12 日
I use regexp(struct(jjj).name,'\_','split'); command to split this structure: K10_5. After being split: {'K10'} I convert it to ordinary array using cell2mat: 'K10'
I realized that 'K10' size is 1*3. How can I make it to be 1*1 not 1*3?

採用された回答

Stephan
Stephan 2019 年 10 月 12 日
a = 'K10'
b = string(a)
whos

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by