Borrar filtros
Borrar filtros

Exporting MatLab generated values into Excel Spreadsheet

3 visualizaciones (últimos 30 días)
Hi all,
I am currently attempting to export the values I have calculated in MatLab into an excel spreadsheet so that I do not have to manually copy them one by one. However I am unsure of how to do it.
My current codes stores the values in a dataset as shown in the codes below:
HEADER= {'Mean'; 'Standard Deviation'; 'Smoothness'; 'Third Moment'; 'Uniformity'; 'Entropy'}
endVALUES = [aMean; aSD; aSmoothness; aThirdMoment; aUniformity; aEntropy];
data = dataset(HEADER, VALUES);
disp(data);
Basically I am supposed to populate the spreadsheet with values calculated from MatLab, and it would be perfect if there is a way to export the data I have into the next empty row of an Excel spreadsheet.
Would anyone point me in the right direction as to how I can export the values I have into Excel?
Best Regards
Guan Zhao

Respuesta aceptada

Image Analyst
Image Analyst el 19 de Feb. de 2013
Have you tried to use the xlswrite() function?
  2 comentarios
Guan Zhao
Guan Zhao el 19 de Feb. de 2013
Nope not yet, I was wondering if this function is able to write dataset line by line into MatLab.
Image Analyst
Image Analyst el 19 de Feb. de 2013
It can, but if you call it more than 2 or 3 times it will be slow because each time it has to launch and shutdown Excel. In that situation you can either accumulate all your strings and numbers into one cell array and write it once, or else use ActiveX, for which I've posted demos here before.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by