Is it possible to share files with other MATLAB users, but protect my code intellectually and against changes?

7 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
As of MATLAB 5.1 (R9), you can use the PCODE function to create a preparsed pseudocode file (P-file) from an MATLAB file. The P-file can be run without the MATLAB file that created it, and cannot be viewed or edited. This will allow you to share code with other MATLAB users, while protecting it intellectually and against changes.
For example, if you have created a file called test.m you can use the PCODE function to create a P-file in the current directory as follows:
pcode test
ls
This will give the following result:
. .. test.m test.p
You can then give the "test.p" file to other users to run.

更多回答(1 个)

David Leffingwell
David Leffingwell 2023-6-12
See Security Considerations to Protect Your Source Code for a general discussion of the IP Protection topic.

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by