Thread Subject: Pack several files in one .p file

Subject: Pack several files in one .p file

From: MRR

Date: 7 Sep, 2009 17:30:20

Message: 1 of 5

Hi,

I have a program which uses several .m files (in fact it is a GUI). I know I can protect these files using PCODE command (and then obtaining a .p file per each .m file), but, can I "embed" or pack all this files in just one? Then I will only need to handle a .p file for the whole program. When executing this file in matlab the program will run.

Kind regards,

Subject: Pack several files in one .p file

From: MRR

Date: 8 Sep, 2009 19:44:01

Message: 2 of 5

No suggestions....?


"MRR" <mario_ruz@hotmail.com> wrote in message <h83fvc$ihh$1@fred.mathworks.com>...
> Hi,
>
> I have a program which uses several .m files (in fact it is a GUI). I know I can protect these files using PCODE command (and then obtaining a .p file per each .m file), but, can I "embed" or pack all this files in just one? Then I will only need to handle a .p file for the whole program. When executing this file in matlab the program will run.
>
> Kind regards,

Subject: Pack several files in one .p file

From: Nathan

Date: 8 Sep, 2009 19:48:16

Message: 3 of 5

On Sep 8, 12:44 pm, "MRR" <mario_...@hotmail.com> wrote:
> No suggestions....?
>
> "MRR" <mario_...@hotmail.com> wrote in message <h83fvc$ih...@fred.mathworks.com>...
> > Hi,
>
> > I have a program which uses several .m files (in fact it is a GUI). I know I can protect these files using PCODE command (and then obtaining a .p file per each .m file), but, can I "embed" or pack all this files in just one? Then I will only need to handle a .p file for the whole program. When executing this file in matlab the program will run.
>
> > Kind regards,
>
>

Um.. You could put all your source code from each .m file into one
(probably large) .m file and then convert that using PCODE. Besides
that, I don't know how to help you.

-Nathan

Subject: Pack several files in one .p file

From: Sprinceana

Date: 8 Sep, 2009 20:11:03

Message: 4 of 5

Assuming you have file1.m , file2.m , file3.m copy the code from this two files into a large file called file.m


Then transform file.m into file.p using pcode command:

>>pcode file


Hope this helps!

Michael

Subject: Pack several files in one .p file

From: MRR

Date: 11 Sep, 2009 06:13:06

Message: 5 of 5

Thank you all for your answers!! I thought before posting the solution you both proposed, but take into account that I have more than 70 files. That is why I want to "embed" all of them, similarly to compile a program in C (you have several files and you obtain an executable).

So my question remains unanswered... :)

Regards, Mario.


"Sprinceana " <mihaispr@yahoo.com> wrote in message <h86don$ioi$1@fred.mathworks.com>...
> Assuming you have file1.m , file2.m , file3.m copy the code from this two files into a large file called file.m
>
>
> Then transform file.m into file.p using pcode command:
>
> >>pcode file
>
>
> Hope this helps!
>
> 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
reference Sprinceana 8 Sep, 2009 16:14:04
pcode Sprinceana 8 Sep, 2009 16:14:04
embed MRR 7 Sep, 2009 13:34:08
pack MRR 7 Sep, 2009 13:34:08
p files MRR 7 Sep, 2009 13:34:07
rssFeed for this Thread

Contact us at files@mathworks.com