In MATLAB you can use the command pcode
, which preparses your MATLAB code to a form that is unreadable by humans, but runs exactly the same (actually, very slightly faster) as the original MATLAB code. What happens is that for each .m
file you pcode, you'll get a new file with a .p
extension. The .p
file runs the same as the .m
file, but is unreadable.
Alternatively, you can purchase MATLAB Compiler, which will convert your entire application into a standalone executable where the code is encrypted.