From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: running other applications
Message-ID: <ef5c942.2@webcrossing.raydaftYaTP>
Date: Fri, 6 Jul 2007 09:27:41 -0400
References: <ef5c942.-1@webcrossing.raydaftYaTP> <ef5c942.0@webcrossing.raydaftYaTP> <ef5c942.1@webcrossing.raydaftYaTP>
Lines: 10
NNTP-Posting-Host: 134.84.160.65
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:417564



It all depends on the program you must run. As far as I know the
only way to have a program do what you want it to do from Matlab
itself the program must be able to accept command line inputs. I
suspect (and could be wrong) any other method, aside from the command
line, would involve Java. If, however, your program does accept
command lines you can use "eval" along with "!".

FileName = 'C:\File Location\File_Name';
eval(['! "C:\Program Files\SomeProgram\executable.exe" "' FileName
'"])