How to write strings and numbers in excel file?
26 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
vaggelis papasot
el 22 de Dic. de 2017
Respondida: Walter Roberson
el 22 de Dic. de 2017
I want to write data in an excel file. I need the first row to strings/labels of the data e.g f_min, f_max_, loss_1, loss_2. Then the next rows will have the data under the above labels. I use xlswrite but can't find how to append the data to the next rows
0 comentarios
Respuesta aceptada
Walter Roberson
el 22 de Dic. de 2017
headers = {'f_min', 'f_max', 'loss_1', ...};
data_as_cell = num2cell(YourNumericDataArray);
info_to_write = [headers; data_as_cell];
xlswrite(AppropriateFilename, info_to_write);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!