4.72727

4.7 | 11 ratings Rate this file 74 downloads (last 30 days) File Size: 341.84 KB File ID: #19322

saveppt2

by Jedediah Frey

 

25 Mar 2008 (Updated 25 Mar 2008)

Code covered by BSD License  

Save Matlab figure(s) to a PowerPoint Slide

Download Now | Watch this File

File Information
Description

Saveppt2 builds on saveppt to include many new options.

Saveppt2 Features:
Save multiple plots to the same PowerPoint slide.
Create slides with and without a title
Add notes to a PowerPoint slide
Scale the figure to fill the slide (with and without locking aspect ratio).
Horizontally and vertically align figures on the slide.
Use a template file for creating a new presentation. (Useful for automated reports)
Add padding to any of the sides for use with scaling or aligning figures.

The zip file includes saveppt2 and a sample presentation created with saveppt2. The code for creating the presentation is also included.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
saveppt

MATLAB release MATLAB 7.5 (R2007b)
Other requirements This was tested on 2007b and Office 2000. It may work with other releases.
Zip File Content  
Other Files saveppt2.m,
test.ppt,
Test_SavePPT2.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
28 Mar 2008 D Selters

Outstanding!

28 Mar 2008 James Cai

Excellent

01 Apr 2008 Nathan Brahms

Very nice! This will make my life easier...

23 Jun 2008 c garven

Thanks

03 Nov 2008 Vincent Bonin  
14 Nov 2008 Wolfgang Schwanghart

Great function. The only minus is, that it automatically shuts down powerpoint and there is no warning. So unsaved ppts will be lost.

20 Mar 2009 Ameya Deoras

Saved me some time. Works with R2009a

18 Apr 2009 jhh

Works great.
 One suggestion: you use
     print('-dmeta'...;
to keep a figure's size unchanged,
    print('-dbitmap',['-f' ...
should be used.
Perhaps add this as an extra option?

20 May 2009 Jaroslaw Tuszynski

great improvement over saveppt . Thanks

04 Nov 2009 Dan Selters  
11 Nov 2009 Paul  
11 Nov 2009 Paul

To avoid losing unsaved ppts, comment out this line:

invoke(ppt,'Quit');

(line 420 in 25 Mar 2008 version)

If you don't have any open ppt's, powerpoint will still close normally

[Tested using powerpoint ver 2007]

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
graphics import Jedediah Frey 22 Oct 2008 09:55:10
graphics export Jedediah Frey 22 Oct 2008 09:55:10
powerpoint Jedediah Frey 22 Oct 2008 09:55:10
figure Jedediah Frey 22 Oct 2008 09:55:10
plot Jedediah Frey 22 Oct 2008 09:55:10
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com