フィルターのクリア

How import matlab figure in Excel via VBA

1 回表示 (過去 30 日間)
Massimo Laspia
Massimo Laspia 2017 年 7 月 27 日
回答済み: Massimo Laspia 2017 年 8 月 3 日
Hi, I need to import Matlab figures, generated by a code, into Excel. I'd like to do this via VBA. MLGetFigure permits to import the current figure but in matlab I created 4-5 figure. Which command should I use in VBA?
Thanks
Massimo
  1 件のコメント
Selva Karna
Selva Karna 2017 年 7 月 27 日
u can use xlswrite

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

回答 (2 件)

Nirav Sharda
Nirav Sharda 2017 年 8 月 2 日
There are multiple ways to do this. You can save the MATLAB figures as .jpg files and import them in Excel. You can also use the ActiveX Automation client feature of MATLAB and start Excel, then print the figure to clipboard and then insert the clipboard contents in Excel as mentioned in the following MATLAB Answers post.
I hope this helps.

Massimo Laspia
Massimo Laspia 2017 年 8 月 3 日
thanks

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by