Is there a way to publish P-coded files in MATLAB (R2013b)?

1 次查看(过去 30 天)
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
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 个)

类别

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

标签

产品


版本

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by