make list with columnames
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is there a proper way to make a list with the columnnames of a table?
2 comentarios
Respuestas (1)
Akira Agata
el 17 de Abr. de 2018
Column names of your table, say T, can be extracted by T.Properties.VariableNames. The following is a simple example.
% Sample table load patients T = table(Gender,Age,Height,Weight,Smoker,Systolic,Diastolic);
% Extract column names and save as 'list' list = T.Properties.VariableNames;
0 comentarios
Ver también
Categorías
Más información sobre Tables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!