Indexing by using column names
조회 수: 33 (최근 30일)
이전 댓글 표시
채택된 답변
Chunru
2021년 9월 13일
A = zeros(3,1); B=rand(3,1); C=ones(3,1);
T = table(A, B, C)
VarNames = {'A', 'C'};
col_index = ismember(T.Properties.VariableNames, VarNames)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!