MATLAB: Has anybody used “makePPTCompilable()”

MATLAB Report Generatorpresentationreportgeneration

I am trying to convert a simple program that uses "Presentation" to a .exe
The code is as follows:
makePPTCompilable();
import mlreportgen.ppt.*
slides = Presentation('mySlideAddPresentation.pptx');
slide1 = add(slides,'Title and Picture');
plane = Picture(which('tulips.jpg'));
plane.X = '4in';
plane.Y = '4in';
plane.Width = '5in';
plane.Height = '2in';
add(slide1,plane);
close(slides);
I get the following error on running the complied version:
" Undefined function 'Presentation' for input arguments of type 'char'"
Any idea what I am missing here?

Best Answer

Hi Sean,
Thank you for your response.
In that case can the function be added as additional files during compilation? What is the best way to make it a part of the package?