Is it possible to share files with other MATLAB users, but protect my code intellectually and against changes?
9 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2009 年 6 月 27 日
回答済み: David Leffingwell
2023 年 6 月 12 日
I would like to be able to share my MATLAB code with other users in a format such that others cannot view or edit my source code.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
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.
0 件のコメント
その他の回答 (1 件)
David Leffingwell
2023 年 6 月 12 日
See Security Considerations to Protect Your Source Code for a general discussion of the IP Protection topic.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!