11.09.2019»»среда

Decrypt P File Matlab Plot

11.09.2019
    32 - Comments
Decrypt P File Matlab Plot Rating: 6,0/10 8183 reviews
Active2 years, 7 months ago

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 Wurst
1,6272 gold badges20 silver badges42 bronze badges
ElmoyaElmoya

1 Answer

Decrypt

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 Shilon
7,6521 gold badge41 silver badges74 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Decrypt P File Matlab Plot Online

Not the answer you're looking for? Browse other questions tagged matlab or ask your own question.

Decrypt P File Matlab Plot
Active2 years ago

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?

Mariano MendezMariano Mendez

2 Answers

Decrypt P File Matlab Plot

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.

BatsuBatsu

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
8,1735 gold badges30 silver badges85 bronze badges

Not the answer you're looking for? Browse other questions tagged matlabplotgraphmatlab-figure or ask your own question.