make list with columnames
조회 수: 12 (최근 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!