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.

2 ビュー (過去 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.

採用された回答

Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by