フィルターのクリア

Exporting MatLab generated values into Excel Spreadsheet

3 ビュー (過去 30 日間)
Guan Zhao
Guan Zhao 2013 年 2 月 19 日
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

採用された回答

Image Analyst
Image Analyst 2013 年 2 月 19 日
Have you tried to use the xlswrite() function?
  2 件のコメント
Guan Zhao
Guan Zhao 2013 年 2 月 19 日
Nope not yet, I was wondering if this function is able to write dataset line by line into MatLab.
Image Analyst
Image Analyst 2013 年 2 月 19 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by