How to make the matrix first column name (character), second column content (number)

1 回表示 (過去 30 日間)
zl
zl 2022 年 5 月 30 日
コメント済み: zl 2022 年 5 月 30 日
like this

採用された回答

KSSV
KSSV 2022 年 5 月 30 日
For this the best suitable is table
varname = {'H1e' ; 'H2e' ;'H3e';'H4e';'H5e'} ;
val = [12; 0.58; 5; 7;3.98] ;
T = table(varname,val)
T = 5×2 table
varname val _______ ____ {'H1e'} 12 {'H2e'} 0.58 {'H3e'} 5 {'H4e'} 7 {'H5e'} 3.98

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by