How to specify column names by writematrix function in Appdesigner?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
piston_pim_offset
el 1 de Abr. de 2024
Comentada: piston_pim_offset
el 22 de Abr. de 2024
I'm working in app designer. I store 4 columns of data to an excell file.
I have already specified the column names in excell and am using "VariableNamingRule", "preserve". But the column names are transformed into Var1, Var2 etc. or all column names are disappeared.
How do l solve this problem?
Thanks in advance!
Respuesta aceptada
Tiffany
el 1 de Abr. de 2024
Editada: Tiffany
el 1 de Abr. de 2024
A potential workaround would be to first use array2table to convert the array into a table and set the column labels by using the property 'VariableNames'. Then you can use writetable to export the data to an excel file.
writetable(array2table(insert_data, 'VariableNames', insert_col_labels), 'filename.xls')
3 comentarios
Tiffany
el 2 de Abr. de 2024
The following video details how to save data from MATLAB to Excel using a template: https://www.mathworks.com/videos/saving-data-from-matlab-to-excel-using-a-template-118948.html. I hope this helps!
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets 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!