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.
21 Jan 2014
This function saves Matlab figure windows or Simulink models to a Powerpoint file.