Is there a way to publish P-coded files in MATLAB (R2013b)?
1 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2013-10-25
回答: MathWorks Support Team
2013-10-25
I have a top level p-coded file, which calls functions that also have been p-coded.
When someone runs my script and wishes to publish it, I only want the output of my hidden commands to be published (figures, numerical results, etc.). Is this possible?
采纳的回答
MathWorks Support Team
2013-10-25
The function PUBLISH works by reading the code file as text. Since the p-file is binary, publishing will not work. The code encryption causes publish to fail.
Attempting to publish a p-coded file will result in "spurious" output on the published script like the following:
v00.00v00.00
Publishing p-files is a bad idea, since it would cause users to interrogate the contents of the file. This would go against the main goal of p-files, which is to obfuscate the code.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!