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

1 view (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Oct 2013
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.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2013a

Community Treasure Hunt

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

Start Hunting!