MATLAB: MATLAB standalone application that includes Excel data template

excelMATLAB Compilerstandalone application

I would like to include an Excel spreadsheet within my standalone application that has a lot of formatting applied and will simply be filled with data and saved to a local drive. If I include it as a 'required file' during compilation, MATLAB opens it when I load the program. Obviously I can prompt the user to select the file or I can save the file in a specific directory, but is there any way to do it by storing the xlsx file as part of the program?

Best Answer

Use the -a option in mcc to include a file in your executable.