Filter löschen
Filter löschen

How import matlab figure in Excel via VBA

1 Ansicht (letzte 30 Tage)
Massimo Laspia
Massimo Laspia am 27 Jul. 2017
Beantwortet: Massimo Laspia am 3 Aug. 2017
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

Antworten (2)

Nirav Sharda
Nirav Sharda am 2 Aug. 2017
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 am 3 Aug. 2017
thanks

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by