Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

matlab

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

like image 977
Elmoya Avatar asked Jun 20 '10 17:06

Elmoya


1 Answers

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, ...);

like image 162
Ofek Shilon Avatar answered Sep 20 '22 16:09

Ofek Shilon