Extract headers from CSV and add to app.Items
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
LabRat
le 24 Juil 2022
Commenté : Walter Roberson
le 27 Juil 2022
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 commentaires
Réponse acceptée
Walter Roberson
le 24 Juil 2022
Modifié(e) : Walter Roberson
le 24 Juil 2022
header = bud_serials.Properties.VariableNames;
app.SelectTestID.Items = header;
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Large Files and Big Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!