tags:

views:

55

answers:

1

hi,

is there a way to open a pcode (.p) file in matlab?

+2  A: 

If by 'open' you mean edit - then certainly not. 'p' in pcode is for 'protected' - its main design goal is deploying a functional component while protecting its source.

If by 'open' you mean run - then certainly yes. Quoting the manual:

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

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

Ofek Shilon
I know some ways for running it. but i don't know any way for editting it.However,thanks for the answer.
Elmoya
That's what my answer says: there is *no* way of editing it. There will never be. The role of p-code is to be able to send components without revealing your source code.
Ofek Shilon

related questions