Thread Subject: run a executable program (path)

Subject: run a executable program (path)

From: Emanuele

Date: 4 Mar, 2009 14:14:02

Message: 1 of 6

Hi all, i would deploy a M-File program in another PC without Matlab.
I have followed the instructions as showed in Matlab Site to compile a standalone program.
http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/

I have compiled the M-Files using this command and the same M-Files as in the instructions
mcc -mv magicsquare.m
It would seem ok, but i'dont understand how i can run the executable program.
What is the right path that i must write in the DOS command window?

I have tried to copy all files obtained after compilation in the foloow path
matlabroot\bin\win32
and than i have tried to run .exe file writing this command
matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare lenght and the only imput of M-File)
but i have not seen the matrix in the window as in the instruction, instead if don't write the matrix lenght(3) i recived a error message becouse missing imput variable.
It's right?
If is right why i don't see the matrix value in Dos windows after i launch programm?

Thanks all in advance

Emanuele

Subject: run a executable program (path)

From: Ashish Uthama

Date: 4 Mar, 2009 16:51:09

Message: 2 of 6

On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
<emanuelemignosa.nospam@mathworks.com> wrote:

> Hi all, i would deploy a M-File program in another PC without Matlab.
> I have followed the instructions as showed in Matlab Site to compile a
> standalone program.
> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
>
> I have compiled the M-Files using this command and the same M-Files as
> in the instructions
> mcc -mv magicsquare.m
> It would seem ok, but i'dont understand how i can run the executable
> program.
> What is the right path that i must write in the DOS command window?
>
> I have tried to copy all files obtained after compilation in the foloow
> path
> matlabroot\bin\win32
> and than i have tried to run .exe file writing this command
> matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
> lenght and the only imput of M-File)
> but i have not seen the matrix in the window as in the instruction,
> instead if don't write the matrix lenght(3) i recived a error message
> becouse missing imput variable.
> It's right?

> If is right why i don't see the matrix value in Dos windows after i
> launch programm?

First, did you install the MCR on the 'another PC without MATLAB' ?

If you did, then you seem to calling it correctly.
What _do_ you see when you run the following from a windows command prompt
after you CD to the directory which has the magicswuare.exe file?
     magicsquare.exe 3

Subject: run a executable program (path)

From: Emanuele

Date: 4 Mar, 2009 17:30:05

Message: 3 of 6

"Ashish Uthama" <first.last@mathworks.com> wrote in message <op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com>...
> On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
> <emanuelemignosa.nospam@mathworks.com> wrote:
>
> > Hi all, i would deploy a M-File program in another PC without Matlab.
> > I have followed the instructions as showed in Matlab Site to compile a
> > standalone program.
> > http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
> >
> > I have compiled the M-Files using this command and the same M-Files as
> > in the instructions
> > mcc -mv magicsquare.m
> > It would seem ok, but i'dont understand how i can run the executable
> > program.
> > What is the right path that i must write in the DOS command window?
> >
> > I have tried to copy all files obtained after compilation in the foloow
> > path
> > matlabroot\bin\win32
> > and than i have tried to run .exe file writing this command
> > matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
> > lenght and the only imput of M-File)
> > but i have not seen the matrix in the window as in the instruction,
> > instead if don't write the matrix lenght(3) i recived a error message
> > becouse missing imput variable.
> > It's right?
>
> > If is right why i don't see the matrix value in Dos windows after i
> > launch programm?
>
> First, did you install the MCR on the 'another PC without MATLAB' ?
>
> If you did, then you seem to calling it correctly.
> What _do_ you see when you run the following from a windows command prompt
> after you CD to the directory which has the magicswuare.exe file?
> magicsquare.exe 3
 
Thank you very much for your advice, but i have just fix the problem. The error was in the code M-file and not in the path root. So when i launch the .exe file it's run fine.
Instead i have another problem, i would hide the code, i don't want show it.
It's possible. Infact when i click on .exe file, it give me a magicsquare.mcr(folder) file that contain the m-file code. How can solve the problem????

Thanks in advance

Emanuele

Subject: run a executable program (path)

From: Ashish Uthama

Date: 4 Mar, 2009 17:48:34

Message: 4 of 6

On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele
<emanuelemignosa.nospam@mathworks.com> wrote:

> "Ashish Uthama" <first.last@mathworks.com> wrote in message
> <op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com>...
>> On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
>> <emanuelemignosa.nospam@mathworks.com> wrote:
>>
>> > Hi all, i would deploy a M-File program in another PC without Matlab.
>> > I have followed the instructions as showed in Matlab Site to compile a
>> > standalone program.
>> > http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
>> >
>> > I have compiled the M-Files using this command and the same M-Files as
>> > in the instructions
>> > mcc -mv magicsquare.m
>> > It would seem ok, but i'dont understand how i can run the executable
>> > program.
>> > What is the right path that i must write in the DOS command window?
>> >
>> > I have tried to copy all files obtained after compilation in the
>> foloow
>> > path
>> > matlabroot\bin\win32
>> > and than i have tried to run .exe file writing this command
>> > matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
>> > lenght and the only imput of M-File)
>> > but i have not seen the matrix in the window as in the instruction,
>> > instead if don't write the matrix lenght(3) i recived a error message
>> > becouse missing imput variable.
>> > It's right?
>>
>> > If is right why i don't see the matrix value in Dos windows after i
>> > launch programm?
>>
>> First, did you install the MCR on the 'another PC without MATLAB' ?
>>
>> If you did, then you seem to calling it correctly.
>> What _do_ you see when you run the following from a windows command
>> prompt
>> after you CD to the directory which has the magicswuare.exe file?
>> magicsquare.exe 3
> Thank you very much for your advice, but i have just fix the problem.
> The error was in the code M-file and not in the path root. So when i
> launch the .exe file it's run fine.
> Instead i have another problem, i would hide the code, i don't want
> show it.
> It's possible. Infact when i click on .exe file, it give me a
> magicsquare.mcr(folder) file that contain the m-file code. How can solve
> the problem????
>
> Thanks in advance
>
> Emanuele


Emanuele,

Did you try opening the M file?
If you did, you would notice that it is encrypted.

Ashish

Subject: run a executable program (path)

From: Emanuele

Date: 4 Mar, 2009 19:42:02

Message: 5 of 6

"Ashish Uthama" <first.last@mathworks.com> wrote in message <op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com>...
> On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele
> <emanuelemignosa.nospam@mathworks.com> wrote:
>
> > "Ashish Uthama" <first.last@mathworks.com> wrote in message
> > <op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com>...
> >> On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
> >> <emanuelemignosa.nospam@mathworks.com> wrote:
> >>
> >> > Hi all, i would deploy a M-File program in another PC without Matlab.
> >> > I have followed the instructions as showed in Matlab Site to compile a
> >> > standalone program.
> >> > http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
> >> >
> >> > I have compiled the M-Files using this command and the same M-Files as
> >> > in the instructions
> >> > mcc -mv magicsquare.m
> >> > It would seem ok, but i'dont understand how i can run the executable
> >> > program.
> >> > What is the right path that i must write in the DOS command window?
> >> >
> >> > I have tried to copy all files obtained after compilation in the
> >> foloow
> >> > path
> >> > matlabroot\bin\win32
> >> > and than i have tried to run .exe file writing this command
> >> > matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
> >> > lenght and the only imput of M-File)
> >> > but i have not seen the matrix in the window as in the instruction,
> >> > instead if don't write the matrix lenght(3) i recived a error message
> >> > becouse missing imput variable.
> >> > It's right?
> >>
> >> > If is right why i don't see the matrix value in Dos windows after i
> >> > launch programm?
> >>
> >> First, did you install the MCR on the 'another PC without MATLAB' ?
> >>
> >> If you did, then you seem to calling it correctly.
> >> What _do_ you see when you run the following from a windows command
> >> prompt
> >> after you CD to the directory which has the magicswuare.exe file?
> >> magicsquare.exe 3
> > Thank you very much for your advice, but i have just fix the problem.
> > The error was in the code M-file and not in the path root. So when i
> > launch the .exe file it's run fine.
> > Instead i have another problem, i would hide the code, i don't want
> > show it.
> > It's possible. Infact when i click on .exe file, it give me a
> > magicsquare.mcr(folder) file that contain the m-file code. How can solve
> > the problem????
> >
> > Thanks in advance
> >
> > Emanuele
>
>
> Emanuele,
>
> Did you try opening the M file?
> If you did, you would notice that it is encrypted.
>
> Ashish

Thank you Ashish. I have try to open file, it is encrypted. You have right.
But what is the security level? Is high ?

Thanks

Emanuele

Subject: run a executable program (path)

From: Ashish Uthama

Date: 4 Mar, 2009 20:36:33

Message: 6 of 6

On Wed, 04 Mar 2009 14:42:02 -0500, Emanuele
<emanuelemignosa.nospam@mathworks.com> wrote:

> "Ashish Uthama" <first.last@mathworks.com> wrote in message
> <op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com>...
>> On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele
>> <emanuelemignosa.nospam@mathworks.com> wrote:
>>
>> > "Ashish Uthama" <first.last@mathworks.com> wrote in message
>> > <op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com>...
>> >> On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
>> >> <emanuelemignosa.nospam@mathworks.com> wrote:
>> >>
>> >> > Hi all, i would deploy a M-File program in another PC without
>> Matlab.
>> >> > I have followed the instructions as showed in Matlab Site to
>> compile a
>> >> > standalone program.
>> >> > http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
>> >> >
>> >> > I have compiled the M-Files using this command and the same
>> M-Files as
>> >> > in the instructions
>> >> > mcc -mv magicsquare.m
>> >> > It would seem ok, but i'dont understand how i can run the
>> executable
>> >> > program.
>> >> > What is the right path that i must write in the DOS command window?
>> >> >
>> >> > I have tried to copy all files obtained after compilation in the
>> >> foloow
>> >> > path
>> >> > matlabroot\bin\win32
>> >> > and than i have tried to run .exe file writing this command
>> >> > matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
>> >> > lenght and the only imput of M-File)
>> >> > but i have not seen the matrix in the window as in the instruction,
>> >> > instead if don't write the matrix lenght(3) i recived a error
>> message
>> >> > becouse missing imput variable.
>> >> > It's right?
>> >>
>> >> > If is right why i don't see the matrix value in Dos windows after i
>> >> > launch programm?
>> >>
>> >> First, did you install the MCR on the 'another PC without MATLAB' ?
>> >>
>> >> If you did, then you seem to calling it correctly.
>> >> What _do_ you see when you run the following from a windows command
>> >> prompt
>> >> after you CD to the directory which has the magicswuare.exe file?
>> >> magicsquare.exe 3
>> > Thank you very much for your advice, but i have just fix the problem.
>> > The error was in the code M-file and not in the path root. So when i
>> > launch the .exe file it's run fine.
>> > Instead i have another problem, i would hide the code, i don't want
>> > show it.
>> > It's possible. Infact when i click on .exe file, it give me a
>> > magicsquare.mcr(folder) file that contain the m-file code. How can
>> solve
>> > the problem????
>> >
>> > Thanks in advance
>> >
>> > Emanuele
>>
>>
>> Emanuele,
>>
>> Did you try opening the M file?
>> If you did, you would notice that it is encrypted.
>>
>> Ashish
>
> Thank you Ashish. I have try to open file, it is encrypted. You have
> right.
> But what is the security level? Is high ?
>
> Thanks
>
> Emanuele

Please have a look at the solution below:

Can I depend on the MATLAB Compiler 4.0 (R14) to protect my intellectual
property?
http://www.mathworks.com/support/solutions/data/1-2ZAVUJ.html?solution=1-2ZAVUJ

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com