make list with columnames
11 ビュー (過去 30 日間)
古いコメントを表示
Is there a proper way to make a list with the columnnames of a table?
2 件のコメント
回答 (1 件)
Akira Agata
2018 年 4 月 17 日
Column names of your table, say T, can be extracted by T.Properties.VariableNames. The following is a simple example.
% Sample table load patients T = table(Gender,Age,Height,Weight,Smoker,Systolic,Diastolic);
% Extract column names and save as 'list' list = T.Properties.VariableNames;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!