Thread Subject:
Conversion from .p file to .exe file

Subject: Conversion from .p file to .exe file

From: Sprinceana

Date: 9 Jun, 2009 13:34:02

Message: 1 of 6

I have a gui in matlab.


I made a cryptographic file (with .p file extension) using pcode function of matlab.

My question is:

Can I make an .exe file from that .p file automatically?

So I don't want to make an .exe file from a .m file using mcc command or deployment tool.

I want to know if it's possible to create an exe file from a .p file.

Michael

Subject: Conversion from .p file to .exe file

From: Sprinceana

Date: 9 Jun, 2009 15:25:03

Message: 2 of 6

Any ideas please?

Conversion from .p file to .exe file.

Subject: Conversion from .p file to .exe file

From: Marcus M. Edvall

Date: 9 Jun, 2009 23:27:34

Message: 3 of 6

mcc does not support pcoded files to my knowledge.

If you wish to make a standalone exe (without MCR dependencies) you
would need to code the original m-file in C or similar.

The m-files processed by mcc should be encrypted though so there is no
need to pcode if you use the mcc.

Best wishes, Marcus
Tomlab Optimization Inc.
http://tomopt.com/
http://tomdyn.com/

Subject: Conversion from .p file to .exe file

From: Steven Lord

Date: 10 Jun, 2009 01:50:14

Message: 4 of 6


"Marcus M. Edvall" <edvall@gmail.com> wrote in message
news:f84f9dd3-d471-41e1-8e9f-bbe168d75e80@o36g2000vbi.googlegroups.com...
> mcc does not support pcoded files to my knowledge.

http://www.mathworks.com/support/solutions/en/data/1-1BZEA/

--
Steve Lord
slord@mathworks.com

Subject: Conversion from .p file to .exe file

From: Aurelien Queffurust

Date: 10 Jun, 2009 06:55:03

Message: 5 of 6

"Steven Lord" <slord@mathworks.com> wrote in message <h0n3fq$t77$1@fred.mathworks.com>...
>
> "Marcus M. Edvall" <edvall@gmail.com> wrote in message
> news:f84f9dd3-d471-41e1-8e9f-bbe168d75e80@o36g2000vbi.googlegroups.com...
> > mcc does not support pcoded files to my knowledge.
>
> http://www.mathworks.com/support/solutions/en/data/1-1BZEA/
>
> --
> Steve Lord
> slord@mathworks.com
>


In R2009a releases notes ( http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/rn/brwhujw-1.html) , we can read:
"MATLAB Pcode Files Can Now Be Compiled
You can now compile MATLAB Preparsed Pseudocode files (Pcode files or "P-files"). "

But it is quite strange that I was able to achieve this in 8b under Windows:

First I tried in a "old" release:
1) R2006b
First I tried to compile directly a pcode file in R2006b as follows:
>>pcode my_pcode.m % (dummy function with just a command to plot(1:10))
Then I deleted the mypcode.m just to keep the output file my_pcode.p
>>delete my_pcode.m
And last I invoked MATLAB Compiler:
>>mcc - mv my_pcode
and I got the expected error message:
Error: File "my_pcode" not found.

2) R2008b or R2009a
I reproduced the same steps in 8b and 9a and got an executable my_pcode.exe
Compilation verbose doesn't give any error message

So I don't know why it is mentionned in the releases notes that it is only available as of 9a ...

Subject: Conversion from .p file to .exe file

From: Sprinceana

Date: 10 Jun, 2009 09:35:03

Message: 6 of 6

I made a gui interface and I wanted to know if it is possible!


Thanks for your very well explanations!

Thank you very much to all of you!

Best regards,

Michael

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
compiler Aurelien Queffurust 10 Jun, 2009 02:59:04
r2009a Aurelien Queffurust 10 Jun, 2009 02:59:04
releases notes Aurelien Queffurust 10 Jun, 2009 02:59:04
pcode Aurelien Queffurust 10 Jun, 2009 02:59:04
conversion from p ... Sprinceana 9 Jun, 2009 11:29:06
p file to exe file... Sprinceana 9 Jun, 2009 09:39:03
rssFeed for this Thread

Contact us