What is the easiest way to provide the user with a compiled version of a matlab function so that he can run without having the source?

5 views (last 30 days)
I do not want to share the source (a prepared MATLAB function) with the community. What is the most direct way to prepare a compiled version of the function so that the users (having Matlab) can run it?

Accepted Answer

Matt J
Matt J on 21 Oct 2024
Edited: Matt J on 21 Oct 2024
If the idea is to obscure the source code, consider,
This is not so much "compiling" the source code as encrypting it, but that sounds more like what you are trying to do.
  2 Comments
Walter Roberson
Walter Roberson on 21 Oct 2024
Note that pcode is considered to be more "encoding" rather than "encrypting".
The pcode algorithm changed a few releases ago to make it more obscure. I have not seen anyone post indicating that they have reverse-engineered the new pcode algorithm -- but that doesn't mean that no-one has done it.
pcode should be considered to be a "notable nuisance" level of protection, but definitely not "stops most nation-states" level of protection.

Sign in to comment.

More Answers (0)

Categories

Find more on Audio Plugin Creation and Hosting in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!