Is there a way to automatically extract as many header columns as is available? Each csv file will have a different number of header columns.
조회 수: 1 (최근 30일)
이전 댓글 표시
Example:
If I wanted to add header columns 2 to 4, I would use:
header = bud_serials.Properties.VariableNames;
app.SelectTestID.Items = header(2:4);
However, if the number of header columns changes each time, how would I automatially extract the available header columns that exist. Each CSV file I extract from will have a different number of header colunns.
댓글 수: 0
채택된 답변
Walter Roberson
2022년 7월 27일
app.SelectTestID.Items = header(2:end);
will skip the first column and give you the names of the rest.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!