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

Stanley Fletcher

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Stanley
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
set(pic1,'Width',single(slide_W))
if pic1.Height > slide_H*.8
set(pic1,'Height',single(slide_H*.8))
end

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