Decrypt P File Matlab Plot
MATLAB ® creates the P-files in the current folder. The original.m file or folder can be anywhere on the search path. Pcode(fun1.,funN) creates N P-files from the listed files. If any inputs are folders, then MATLAB creates a P-file for every.m file the folders contain.
Is there a way to open a pcode file (.p) in MATLAB?
Herr von Wurst1 Answer
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 ShilonOfek ShilonDecrypt P File Matlab Plot Online
Not the answer you're looking for? Browse other questions tagged matlab or ask your own question.
I've been given the homework to graph the function x^3 and 3^x in one graph.
Does anyone could help me with this exercise please?
2 Answers
every time you call plot
matlab will clean the canvas before drawing the new function, unless you are focused on a window where you called hold on
, which will substantially tells Matlab to keep the old stuff and superimpose the new drawing.
another option
ps. Two ezplot
commands are used with a hold on becuase ezplot
does not support setting color directly on it in the same call. One must first make the ezplot
then set the color afterwords. Also, there is not way to pass more than one color at the same time. Hence if one to use ezplot
, I did not see a way to avoid multiple calls.
Sometimes Matlab functions are not all consistent in how they work.
NasserNasser