Marco
Marco

Reputation: 1025

How to write a protected MATLAB script/program?

I need to write a MATLAB script/program to a client; and I need to hide the code. The client will only able run the program but will not be able to read the code. May I know how I can do that?

Thanks

Upvotes: 3

Views: 1778

Answers (4)

Chris
Chris

Reputation: 46346

Have a look at pcode. The alternative is to compile the code to binary, as others have suggested. See Protecting Your Source Code.

Upvotes: 1

nrz
nrz

Reputation: 10570

pcode function creates protected .p files.

Upvotes: 7

High Performance Mark
High Performance Mark

Reputation: 78354

Try pcode.

nothing to add, just getting over the minimum answer size

Upvotes: 1

Gunther Struyf
Gunther Struyf

Reputation: 11168

compile it: http://www.mathworks.nl/products/compiler/

Encrypts MATLAB code so that it cannot be viewed or modified

Upvotes: 3

Related Questions