Extract headers from CSV and add to app.Items
6 ビュー (過去 30 日間)
古いコメントを表示
I would like to take the first row of a csv file (headers) and add those to a dropdown menu item. I tried something like this:
bud_serials = readtable(annotation);
header = bud_serials(1:1, :)
app.SelectTestID.Items = {header};
I get an error: "'Items' must be a 1-D cell array of character vectors or a string array."
0 件のコメント
採用された回答
Walter Roberson
2022 年 7 月 24 日
編集済み: Walter Roberson
2022 年 7 月 24 日
header = bud_serials.Properties.VariableNames;
app.SelectTestID.Items = header;
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!