Exporting MatLab generated values into Excel Spreadsheet
1 view (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Image Analyst
on 19 Feb 2013
Have you tried to use the xlswrite() function?
2 Comments
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.
More Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!