Get the names of the slide masters in the presentation. The default template has only one slide master.
masters = getMasterNames(ppt);
Get the names of 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 presentation and replace the title in the slide.