Main Content

mlreportgen.utils.powerpoint Class

Namespace: mlreportgen.utils

Interact with PowerPoint application and presentations


This utility provides methods for interacting with the PowerPoint® application and PowerPoint presentations. These methods use the MATLAB interface to the Microsoft .NET framework to interact with the PowerPoint editor.


expand all


Open PowerPoint Presentations

Open the test.pptx and test1.pptx PowerPoint presentations, which are in the current working folder.

pptPres ='test')
pptPres1 ='test1') 
pptPres = 

  PPTPres with properties:
    FileName: 'C:\Users\username\Documents\test.pptx'

pptPres1 = 

  pptPres with properties:
    FileName: 'C:\Users\username\Documents\test1.pptx'

Obtain PowerPoint Presentation File Names

Obtain the names of open PowerPoint presentation files.

files = mlreportgen.utils.powerpoint.filenames()
files = 

  1×2 string array

    "C:\Users\username\Documents\test.pptx" ...

Version History

Introduced in R2018b