Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: run a executable program (path)
Date: Wed, 04 Mar 2009 15:36:33 -0500
Organization: TMW
Lines: 88
Message-ID: <op.uqabi7uya5ziv5@uthamaa.dhcp.mathworks.com>
References: <gom2ba$m10$1@fred.mathworks.com>
 <op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com>
 <gomlia$28k$1@fred.mathworks.com>
NNTP-Posting-Host: uthamaa.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1236198993 4174 172.31.57.126 (4 Mar 2009 20:36:33 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Mar 2009 20:36:33 +0000 (UTC)
User-Agent: Opera Mail/9.63 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:522573


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