Creating document with graphs plotted on app

5 views (last 30 days)
Hello,
Im building an app that does some data analysis from a database. The app plots several graphs,
all of them are presented using subplots inside different panels, after the user clicks a button.
I want the user to be able to click a button that will create a word document showing those graphs,
but im having trouble implementing that.
What i tried to do so far is save the graphs as images to the current folder using frame2im(getframe(gcf)),
using the images to write the document, and then deleting the images within the code.
implementing this makes the app run slower, and also making the graphs "flicker" ones when being saved as an image.
Is there any smarter way to do this? been struggling for quite long.

Answers (1)

Anjaneyulu Bairi
Anjaneyulu Bairi on 6 Sep 2023
I Understand that you are trying to insert images, generated from your app into a word document. Follow the below documentation link that provides an illustration to achieve this. Note that execution of the steps provided in the documentation requires MATLAB report generator..
To open the example, execute the below command in MATLAB command window.
>> openExample('rptgen/CreateAReportWithLandscapePagesExample')
Hope the provided information helps in resolving your query.

Categories

Find more on Migrate GUIDE Apps 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!