Main Content

Compile a Presentation Program

If the MATLAB® Compiler™ product is installed on your system, you can compile your MATLAB API for PowerPoint® (PPT API) programs. Then, you can share the compiled programs with others who do not have a licensed copy of MATLAB.

To enable execution of your compiled program on a system that does not have a licensed copy of MATLAB, you must include makePPTCompilable() before the first line of PPT API code. For example:


import mlreportgen.ppt.*

ppt = Presentation("myPresentation");
slide = add(ppt,"Title Slide");
replace(slide,"Title","My Title");


To enable execution of compiled DOM and Report API programs, use makeDOMCompilable() instead of makePPTCompilable().

To compile a presentation generation program, use the mcc (MATLAB Compiler) function or the Application Compiler (MATLAB Compiler) app.

Related Topics