How can I pilot powerpoint from Matlab ?

1 view (last 30 days)
farzad
farzad on 5 May 2020
Commented: Rik on 5 May 2020
Hi All
how can I add the results of my analysis in matlab, mostly images saved in folders, to the pages in a powerpoint and a word file ? how much flexible is Matlab in this ?

Accepted Answer

Rik
Rik on 5 May 2020
There are two ways I know of, neither is simple:
  1. Use ActiveX (which will be removed from Matlab in a future release and will only help you on a Windows machine)
  2. Write the compressed XML file yourself. The docx and pptx formats are just zip files with an XML backbone, so if you can figure out how Microsoft stores everything, you can create your own documents from scratch.
  2 Comments
farzad
farzad on 5 May 2020
That's so strange and sad and weird that ActiveX is gonna be removed from Matlab if it's this usefull.
I wish there was an already written function or toolbox that would do this favor.
Do you know how to write these Xml files ? any example done in Matlab ? have you done it ?
Rik
Rik on 5 May 2020
I haven't looked up if it is actually going to be removed, but ActiveX is starting to show its age, and as I understand it there are some security concerns. To be clear: I'm not an expert on either ActiveX or the security ramifications.
I don't know how to write .docx or .pptx files. If I did, I would probably post that on the FEX or GitHub, so I would suggest you look there.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!