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

Stanley Fletcher


Personal Profile:


Watch this Author's files


Comments and Ratings by Stanley Fletcher
Updated File Comments Rating
02 Nov 2011 saveppt This function saves Matlab figure windows or Simulink models to a Powerpoint file. Author: Mark Brown

For my application I needed to resize the image to fit the ppt slide automatically. It was simple enough and I thought I'd share how it's done in case anyone else is looking to do the same. I found inserting:

% Size Picture to fit slide
if pic1.Height > slide_H*.8

above the code block:

% Get height and width of picture:
pic_H = get(pic1,'Height');
pic_W = get(pic1,'Width');

did the trick for me.

Contact us