Exporting MatLab generated values into Excel Spreadsheet

3 views (last 30 days)
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);
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

Accepted Answer

Image Analyst
Image Analyst on 19 Feb 2013
Have you tried to use the xlswrite() function?
Image Analyst
Image Analyst on 19 Feb 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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!