<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895</link>
    <title>MATLAB Central Newsreader - run a executable program (path)</title>
    <description>Feed for thread: run a executable program (path)</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 04 Mar 2009 14:14:02 -0500</pubDate>
      <title>run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632446</link>
      <author>Emanuele </author>
      <description>Hi all, i would deploy a M-File program in another PC without Matlab.&lt;br&gt;
I have followed the instructions as showed in Matlab Site to compile a standalone program. &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I have compiled the M-Files using this command and the same M-Files as in the instructions&lt;br&gt;
mcc -mv magicsquare.m&lt;br&gt;
It would seem ok, but i'dont understand how i can run the executable program.&lt;br&gt;
What is the right path that i must write in the DOS command window?&lt;br&gt;
&lt;br&gt;
I have tried to copy  all files obtained after compilation in the foloow path&lt;br&gt;
matlabroot\bin\win32&lt;br&gt;
and than i have tried to run .exe file writing this command&lt;br&gt;
matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare lenght and the only imput of M-File)&lt;br&gt;
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.&lt;br&gt;
It's right? &lt;br&gt;
If is right why i don't see the matrix value in Dos windows after i launch programm?&lt;br&gt;
&lt;br&gt;
Thanks all in advance &lt;br&gt;
&lt;br&gt;
Emanuele</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 16:51:09 -0500</pubDate>
      <title>Re: run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632504</link>
      <author>Ashish Uthama</author>
      <description>On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele  &lt;br&gt;
&amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hi all, i would deploy a M-File program in another PC without Matlab.&lt;br&gt;
&amp;gt; I have followed the instructions as showed in Matlab Site to compile a  &lt;br&gt;
&amp;gt; standalone program.&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have compiled the M-Files using this command and the same M-Files as  &lt;br&gt;
&amp;gt; in the instructions&lt;br&gt;
&amp;gt; mcc -mv magicsquare.m&lt;br&gt;
&amp;gt; It would seem ok, but i'dont understand how i can run the executable  &lt;br&gt;
&amp;gt; program.&lt;br&gt;
&amp;gt; What is the right path that i must write in the DOS command window?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have tried to copy  all files obtained after compilation in the foloow  &lt;br&gt;
&amp;gt; path&lt;br&gt;
&amp;gt; matlabroot\bin\win32&lt;br&gt;
&amp;gt; and than i have tried to run .exe file writing this command&lt;br&gt;
&amp;gt; matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare  &lt;br&gt;
&amp;gt; lenght and the only imput of M-File)&lt;br&gt;
&amp;gt; but i have not seen the matrix in the window as in the instruction,  &lt;br&gt;
&amp;gt; instead if don't write the matrix lenght(3) i recived a error message  &lt;br&gt;
&amp;gt; becouse missing imput variable.&lt;br&gt;
&amp;gt; It's right?&lt;br&gt;
&lt;br&gt;
&amp;gt; If is right why i don't see the matrix value in Dos windows after i  &lt;br&gt;
&amp;gt; launch programm?&lt;br&gt;
&lt;br&gt;
First, did you install the MCR on the 'another PC without MATLAB' ?&lt;br&gt;
&lt;br&gt;
If you did, then you seem to calling it correctly.&lt;br&gt;
What _do_ you see when you run the following from a windows command prompt  &lt;br&gt;
after you CD to the directory which has the magicswuare.exe file?&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;magicsquare.exe 3</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 17:30:05 -0500</pubDate>
      <title>Re: run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632512</link>
      <author>Emanuele </author>
      <description>&quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message &amp;lt;op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele  &lt;br&gt;
&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hi all, i would deploy a M-File program in another PC without Matlab.&lt;br&gt;
&amp;gt; &amp;gt; I have followed the instructions as showed in Matlab Site to compile a  &lt;br&gt;
&amp;gt; &amp;gt; standalone program.&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I have compiled the M-Files using this command and the same M-Files as  &lt;br&gt;
&amp;gt; &amp;gt; in the instructions&lt;br&gt;
&amp;gt; &amp;gt; mcc -mv magicsquare.m&lt;br&gt;
&amp;gt; &amp;gt; It would seem ok, but i'dont understand how i can run the executable  &lt;br&gt;
&amp;gt; &amp;gt; program.&lt;br&gt;
&amp;gt; &amp;gt; What is the right path that i must write in the DOS command window?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I have tried to copy  all files obtained after compilation in the foloow  &lt;br&gt;
&amp;gt; &amp;gt; path&lt;br&gt;
&amp;gt; &amp;gt; matlabroot\bin\win32&lt;br&gt;
&amp;gt; &amp;gt; and than i have tried to run .exe file writing this command&lt;br&gt;
&amp;gt; &amp;gt; matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare  &lt;br&gt;
&amp;gt; &amp;gt; lenght and the only imput of M-File)&lt;br&gt;
&amp;gt; &amp;gt; but i have not seen the matrix in the window as in the instruction,  &lt;br&gt;
&amp;gt; &amp;gt; instead if don't write the matrix lenght(3) i recived a error message  &lt;br&gt;
&amp;gt; &amp;gt; becouse missing imput variable.&lt;br&gt;
&amp;gt; &amp;gt; It's right?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If is right why i don't see the matrix value in Dos windows after i  &lt;br&gt;
&amp;gt; &amp;gt; launch programm?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; First, did you install the MCR on the 'another PC without MATLAB' ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you did, then you seem to calling it correctly.&lt;br&gt;
&amp;gt; What _do_ you see when you run the following from a windows command prompt  &lt;br&gt;
&amp;gt; after you CD to the directory which has the magicswuare.exe file?&lt;br&gt;
&amp;gt;      magicsquare.exe 3&lt;br&gt;
&amp;nbsp;&lt;br&gt;
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.&lt;br&gt;
Instead i have another problem, i  would hide the code, i don't want show it.&lt;br&gt;
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????&lt;br&gt;
&lt;br&gt;
Thanks in advance &lt;br&gt;
&lt;br&gt;
Emanuele</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 17:48:34 -0500</pubDate>
      <title>Re: run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632525</link>
      <author>Ashish Uthama</author>
      <description>On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele  &lt;br&gt;
&amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; &quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message  &lt;br&gt;
&amp;gt; &amp;lt;op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Hi all, i would deploy a M-File program in another PC without Matlab.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I have followed the instructions as showed in Matlab Site to compile a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; standalone program.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I have compiled the M-Files using this command and the same M-Files as&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; in the instructions&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; mcc -mv magicsquare.m&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; It would seem ok, but i'dont understand how i can run the executable&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; program.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; What is the right path that i must write in the DOS command window?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I have tried to copy  all files obtained after compilation in the  &lt;br&gt;
&amp;gt;&amp;gt; foloow&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; path&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; and than i have tried to run .exe file writing this command&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; lenght and the only imput of M-File)&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; but i have not seen the matrix in the window as in the instruction,&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; instead if don't write the matrix lenght(3) i recived a error message&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; becouse missing imput variable.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; It's right?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; If is right why i don't see the matrix value in Dos windows after i&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; launch programm?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; First, did you install the MCR on the 'another PC without MATLAB' ?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; If you did, then you seem to calling it correctly.&lt;br&gt;
&amp;gt;&amp;gt; What _do_ you see when you run the following from a windows command  &lt;br&gt;
&amp;gt;&amp;gt; prompt&lt;br&gt;
&amp;gt;&amp;gt; after you CD to the directory which has the magicswuare.exe file?&lt;br&gt;
&amp;gt;&amp;gt;      magicsquare.exe 3&lt;br&gt;
&amp;gt; Thank you very much for your advice, but i have just fix the problem.  &lt;br&gt;
&amp;gt; The error was in the code M-file and not in the path root. So when i  &lt;br&gt;
&amp;gt; launch the .exe file it's run fine.&lt;br&gt;
&amp;gt; Instead i have another problem, i  would hide the code, i don't want  &lt;br&gt;
&amp;gt; show it.&lt;br&gt;
&amp;gt; It's possible. Infact when i click on .exe file, it give me a  &lt;br&gt;
&amp;gt; magicsquare.mcr(folder) file that contain the m-file code. How can solve  &lt;br&gt;
&amp;gt; the problem????&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Emanuele&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Emanuele,&lt;br&gt;
&lt;br&gt;
Did you try opening the M file?&lt;br&gt;
If you did, you would notice that it is encrypted.&lt;br&gt;
&lt;br&gt;
Ashish</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 19:42:02 -0500</pubDate>
      <title>Re: run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632564</link>
      <author>Emanuele </author>
      <description>&quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message &amp;lt;op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele  &lt;br&gt;
&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message  &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hi all, i would deploy a M-File program in another PC without Matlab.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have followed the instructions as showed in Matlab Site to compile a&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; standalone program.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have compiled the M-Files using this command and the same M-Files as&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; in the instructions&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; mcc -mv magicsquare.m&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; It would seem ok, but i'dont understand how i can run the executable&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; program.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; What is the right path that i must write in the DOS command window?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have tried to copy  all files obtained after compilation in the  &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; foloow&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; path&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; and than i have tried to run .exe file writing this command&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; lenght and the only imput of M-File)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; but i have not seen the matrix in the window as in the instruction,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; instead if don't write the matrix lenght(3) i recived a error message&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; becouse missing imput variable.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; It's right?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; If is right why i don't see the matrix value in Dos windows after i&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; launch programm?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; First, did you install the MCR on the 'another PC without MATLAB' ?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; If you did, then you seem to calling it correctly.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; What _do_ you see when you run the following from a windows command  &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; prompt&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; after you CD to the directory which has the magicswuare.exe file?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;      magicsquare.exe 3&lt;br&gt;
&amp;gt; &amp;gt; Thank you very much for your advice, but i have just fix the problem.  &lt;br&gt;
&amp;gt; &amp;gt; The error was in the code M-file and not in the path root. So when i  &lt;br&gt;
&amp;gt; &amp;gt; launch the .exe file it's run fine.&lt;br&gt;
&amp;gt; &amp;gt; Instead i have another problem, i  would hide the code, i don't want  &lt;br&gt;
&amp;gt; &amp;gt; show it.&lt;br&gt;
&amp;gt; &amp;gt; It's possible. Infact when i click on .exe file, it give me a  &lt;br&gt;
&amp;gt; &amp;gt; magicsquare.mcr(folder) file that contain the m-file code. How can solve  &lt;br&gt;
&amp;gt; &amp;gt; the problem????&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks in advance&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Emanuele&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Emanuele,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Did you try opening the M file?&lt;br&gt;
&amp;gt; If you did, you would notice that it is encrypted.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ashish&lt;br&gt;
&lt;br&gt;
Thank you Ashish. I have try to open file, it is encrypted. You have right.&lt;br&gt;
But what is the security level? Is high ?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Emanuele</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 20:36:33 -0500</pubDate>
      <title>Re: run a executable program (path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/245895#632582</link>
      <author>Ashish Uthama</author>
      <description>On Wed, 04 Mar 2009 14:42:02 -0500, Emanuele  &lt;br&gt;
&amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; &quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message  &lt;br&gt;
&amp;gt; &amp;lt;op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &quot;Ashish Uthama&quot; &amp;lt;first.last@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;lt;op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;emanuelemignosa.nospam@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hi all, i would deploy a M-File program in another PC without  &lt;br&gt;
&amp;gt;&amp;gt; Matlab.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have followed the instructions as showed in Matlab Site to  &lt;br&gt;
&amp;gt;&amp;gt; compile a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; standalone program.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have compiled the M-Files using this command and the same  &lt;br&gt;
&amp;gt;&amp;gt; M-Files as&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; in the instructions&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; mcc -mv magicsquare.m&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; It would seem ok, but i'dont understand how i can run the  &lt;br&gt;
&amp;gt;&amp;gt; executable&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; program.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; What is the right path that i must write in the DOS command window?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have tried to copy  all files obtained after compilation in the&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; foloow&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; path&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; and than i have tried to run .exe file writing this command&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; lenght and the only imput of M-File)&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; but i have not seen the matrix in the window as in the instruction,&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; instead if don't write the matrix lenght(3) i recived a error  &lt;br&gt;
&amp;gt;&amp;gt; message&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; becouse missing imput variable.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; It's right?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; If is right why i don't see the matrix value in Dos windows after i&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; launch programm?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; First, did you install the MCR on the 'another PC without MATLAB' ?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; If you did, then you seem to calling it correctly.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; What _do_ you see when you run the following from a windows command&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; prompt&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; after you CD to the directory which has the magicswuare.exe file?&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;      magicsquare.exe 3&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Thank you very much for your advice, but i have just fix the problem.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; The error was in the code M-file and not in the path root. So when i&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; launch the .exe file it's run fine.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Instead i have another problem, i  would hide the code, i don't want&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; show it.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; It's possible. Infact when i click on .exe file, it give me a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; magicsquare.mcr(folder) file that contain the m-file code. How can  &lt;br&gt;
&amp;gt;&amp;gt; solve&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the problem????&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Thanks in advance&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Emanuele&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Emanuele,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Did you try opening the M file?&lt;br&gt;
&amp;gt;&amp;gt; If you did, you would notice that it is encrypted.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Ashish&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thank you Ashish. I have try to open file, it is encrypted. You have  &lt;br&gt;
&amp;gt; right.&lt;br&gt;
&amp;gt; But what is the security level? Is high ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Emanuele&lt;br&gt;
&lt;br&gt;
Please have a look at the solution below:&lt;br&gt;
&lt;br&gt;
Can I depend on the MATLAB Compiler 4.0 (R14) to protect my intellectual  &lt;br&gt;
property?&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-2ZAVUJ.html?solution=1-2ZAVUJ&quot;&gt;http://www.mathworks.com/support/solutions/data/1-2ZAVUJ.html?solution=1-2ZAVUJ&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

