Rank: 278034 based on 0 downloads (last 30 days) and 0 file submitted
photo

JC M

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by JC View all
Updated File Comments Rating
03 Sep 2013 saveppt This function saves Matlab figure windows or Simulink models to a Powerpoint file. Author: Mark Brown

Mark,
Thanks for the suggestion. I added the pause right after the paste but that did not solve the issue (even with a 5s pause).
I am calling saveppt in a loop, but the failure occurs the very first time, right after the first image is pasted into the first slide. it is not being centered, and the file is not saved.
In the debugger, the pic1 object is set to:
<1x1 Interface.Microsoft_PowerPoint_14.0_Object_Library.ShapeRange>
Thanks,
JC

23 Aug 2013 saveppt This function saves Matlab figure windows or Simulink models to a Powerpoint file. Author: Mark Brown

Great function that has been very useful over the years. but just was migrated to Powerpoint 2013.
I'm getting the following error:
Error using Interface.Microsoft_PowerPoint_14.0_Object_Library.ShapeRange/get
Error: Object returned error code: 0x800A01A8

Error in run_report>saveppt (line 522)
pic_H = get(pic1,'Height');

a similar error occurs with the next statement:
set(pic1,'Left',single((double(slide_W) - double(pic_W))/2));

Any suggestion would be greatly appreciated.

Thanks,
JC

Contact us