MATLAB tableについて
238 ビュー (過去 30 日間)
古いコメントを表示
MATLABのtableを使用する際に、各列の配列名を取得するためには、どうすればよいのでしょうか。
↓A,Bをtableから抽出したいです。
例
A B
---------------------------------------
1| 43 44
2 件のコメント
採用された回答
Shunichi Kusano
2024 年 2 月 20 日
次のようにアクセスできます。
t = table([43],[44],'VariableNames',{'A','B'})
t.Properties.VariableNames
5 件のコメント
Dyuman Joshi
2024 年 2 月 21 日
"AとBを変数として使いたい場合はどのようにすればよろしいでしょうか"
Once again, why do you want to do that?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!