Get the slide master names so that you can find the layout names to use when you add slides to a presentation.
Import the PPT package so that you do not have to use long, fully qualified names for the PPT API classes.
import mlreportgen.ppt.*
Create a presentation.
ppt = Presentation('myPresentation');
open(ppt);
Get the names of the master slides in the presentation. The default PPT API template has only one slide master.
masters = getMasterNames(ppt);
masters{1}
ans =
'Office Theme'
Get the names of the layouts in the slide master.
layouts = getLayoutNames(ppt,masters{1})
layouts = 1×13 cell
{'Title Slide'} {'Title and Vertical Text'} {'Vertical Title and Text'} {'Title and Table'} {'Title and Picture'} {'Title and Content'} {'Section Header'} {'Two Content'} {'Comparison'} {'Title Only'} {'Blank'} {'Content with Caption'} {'Picture with Caption'}
Add a title slide to the presentaton, using the Title Slide layout, and replace the title in the slide.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.