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!