Documentation
Class: mlreportgen.ppt.Presentation Package: mlreportgen.ppt
Close presentation
close(presentation)
example
close(presentation) closes a presentation and generates a PowerPoint® presentation.
presentation
expand all
Create a presentation.
import mlreportgen.ppt.* slidesFile = 'myParagraphPresentation.pptx'; slides = Presentation(slidesFile); add(slides,'Title Slide');
Create a Paragraph object to use for the title of slides. Make the text bold and red.
Paragraph
p = Paragraph('My Title'); p.Bold = true; p.FontColor = 'red';
Replace the title for the first slide with the paragraph.
contents = find(slides,'Title'); replace(contents(1),p);
Close the presentation.
close(slides);
Open myParagraphPresentation.pptx file. On a Windows® platform, you can open the presentation in MATLAB®:
myParagraphPresentation.pptx
if ispc winopen(slidesFile); end
mlreportgen.ppt.Presentation
Presentation to close, specified as an mlreportgen.ppt.Presentation object.
mlreportgen.ppt.Presentation | open
open
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office
Get trial now