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

Cris

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Cris
Updated File Comments Rating
23 Jun 2014 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov

I just found this nice workaround Eric Sampson posted in the comments to 'saveppt2' to work flawlessly with 'pptfigure' and PowerPoint 2013 as well.

Here follows his orginal comment:

----

Hi all, for those of you who are encountering an error when using this function with PowerPoint 2013, to correct this issue you can replace the following line:
pic1 = invoke(new_slide.Shapes,'Paste');

with the following two lines:

picShapeRange = invoke(new_slide.Shapes,'Paste');
pic1 = invoke(picShapeRange,'Item',1);

This fix will still work when using older versions of PowerPoint.

----

Everything I did was to modify it as follows and everything worked as before:

picShapeRange = invoke(new_slide.Shapes,'Paste'); % or: picShapeRange = invoke(slide.Shapes,'PasteSpecial', 3); (as required)
pic = invoke(picShapeRange,'Item',1);

Best regards,
Cris

Contact us