Path: news.mathworks.com!not-for-mail
From: "Emanuele" <emanuelemignosa.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: run a executable program (path)
Date: Wed, 4 Mar 2009 14:14:02 +0000 (UTC)
Organization: Bocconi
Lines: 20
Message-ID: <gom2ba$m10$1@fred.mathworks.com>
Reply-To: "Emanuele" <emanuelemignosa.nospam@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1236176042 22560 172.30.248.37 (4 Mar 2009 14:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Mar 2009 14:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1017421
Xref: news.mathworks.com comp.soft-sys.matlab:522436


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