How do i use and -s flag for compiling a MATLAB app
6 views (last 30 days)
Navya Singam on 8 Nov 2021
For obfuscating the code, you can use the "pcode" function in MATLAB. It converts the .m file to P-file, which is content-obscured and execute-only form of MATLAB code.
Syntax for creating P-file
pcode(item) %% creates a item.p P-file for the item.m file
Refer to pcode documentation for more information on how to use "pcode" function.
Walter Roberson on 8 Nov 2021
You can add the -s option to the mcc command line.
If you are using applicationCompiler then click on the Settings button, and in the section that comes up marked "Additional parameters passed to mcc:" type in