Is there any way to see the source of the pcode (.p) file in MATLAB?

Is there a way to open a pcode (.p) file in MATLAB?

+7
matlab
source share
1 answer

If "openly" you mean editing, then of course not. The "p" in pcode is for the "protected" - its main design goal is to deploy a functional component while protecting its source.

If "open" you mean run - then, of course, yes. Quote guide:

You call the resulting P-code file in the same way as you call the source MATLAB.m file from which it was received. For example, to call the myfun.p file, type

[out, out2, ...] = myfun (in1, in2, ...);

+11
source share

All Articles