From: Saravanan Mani on
I need to convert p-file in own source m-file, are there some methods?
From: Wayne King on
"Saravanan Mani" <saravanan.ms55(a)gmail.com> wrote in message <hku6sk$e9q$1(a)fred.mathworks.com>...
> I need to convert p-file in own source m-file, are there some methods?

Hi, are you asking how to pcode your own MATLAB source code, so that you can obscure the content and share it with others? Then look at
>>doc pcode

If you are asking how to obtain the MATLAB source code for some .p files someone has given you....well, if someone has taken the effort to pcode their MATLAB programs, it is because they are attempting to protect their (and possibly others') work. They may have very good reasons for doing this, e.g. it is required by their employer, and therefore you should contact the author of the code and see if they will provide you the source code, rather than attempting to obtain the source code in an unethical manner.

Wayne
From: Steven Lord on

"Saravanan Mani" <saravanan.ms55(a)gmail.com> wrote in message
news:hku6sk$e9q$1(a)fred.mathworks.com...
>I need to convert p-file in own source m-file, are there some methods?

Going from an M-file to a P-file? Use PCODE.

Going from a P-file to an M-file? You will need to ask the person who gave
you the P-file if they want to give you the M-file from which the P-file was
generated. If you're the person who generated the P-file and you've lost
the M-file from which it was generated ... then you're out of luck.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: mat001 on
"Saravanan Mani" <saravanan.ms55(a)gmail.com> wrote in message <hku6sk$e9q$1(a)fred.mathworks.com>...
> I need to convert p-file in own source m-file, are there some methods?


You can not convert p to m in principle. pcode just a protection layer over the m files.
protection layer not code.
Do not try better to ask the person if you really need his code.
From: Steve Amphlett on
"mat001 " <priya.biomath(a)gmail.com> wrote in message <hkuef1$i8m$1(a)fred.mathworks.com>...
> "Saravanan Mani" <saravanan.ms55(a)gmail.com> wrote in message <hku6sk$e9q$1(a)fred.mathworks.com>...
> > I need to convert p-file in own source m-file, are there some methods?
>
>
> You can not convert p to m in principle. pcode just a protection layer over the m files.
> protection layer not code.
> Do not try better to ask the person if you really need his code.

Not strictly true. It's not a layer OVER the m-files. They're history and cannot be reconstructed.