Re: running other applications
- From: "Ashish Uthama" <authama@xxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 14:26:42 -0500
which one? Am a bit puzzled too..
On Fri, 29 Feb 2008 13:50:23 -0500, Josh <imahorse3@xxxxxxxxxxx> wrote:
"Josh " <imahorse3@xxxxxxxxxxx> wrote in message
<fq9frt$aqp$1@xxxxxxxxxxxxxxxxxx>...
roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson) wrote into
message <fq9fb8$s9b$1@xxxxxxxxxxxxxxxxxxxxxxx>...
> In article <fq9esh$ojv$1@xxxxxxxxxxxxxxxxxx>,
> Josh <imahorse3@xxxxxxxxxxx> wrote:
>
> >I have been trying to execute this program for matlab
using
> >the advice above but I keep getting this error:
>
> >status =
> > 128
> >result =
> > ''
>
> >icExe = 'C:\PathName\myProgram.exe';
> >FullImg = ['-i', ' ', FullImg, ' '];
> >FullSens = ['-bi', ' ', FullSens, ' '];
> >FullAA = ['-co', ' ', FullAA, ' '];
>
> >cmdLine = [FullImg, FullSens, FullAA];
> >cmdLine = sprintf('%s %s', icExe, cmdLine)
>
> As a stylistic note: if you use [] to splice together
character
> strings on the lines above this, but then use sprintf
splicethe
> together character strings here, then it may give the
onlooker
> the impression that there is something different about
> respective operations, and the onlooker may then wastespecial
time trying
> to figure out what the distinction in meaning is. It is
thus
> advisable to be consistant, such as by coding
>
> cmdLine = [icExe, ' ', cmdLine];
>
> instead of using the sprintf.
>
>
> >[status,result] = system(cmdLine)
>
> >Any help on why this doesnt work?
>
> There is nothing that is obvious to me in what you show.
> However, not knowing the starting values of FullImg,
FullSens, or FullAA,
> I would speculate that perhaps one of them has a
characterBig
> (such as a space or '>') that needs to be quoted to be
passed intact
> to the command line. Possibly something like,
>
> FullImg = ['-i', ' "', FullImg, '" '];
> --
> "You can't hit what you can't see." -- Walter "The
Train" JohnsonNevermind, I had to change the environment variables on my
system. Duh.
Thanks anyway.
.
- References:
- Re: running other applications
- From: Josh
- Re: running other applications
- From: Walter Roberson
- Re: running other applications
- From: Josh
- Re: running other applications
- From: Josh
- Re: running other applications
- Prev by Date: Re: Numerical Integrators
- Next by Date: Re: best college for foreign education
- Previous by thread: Re: running other applications
- Next by thread: How to generate binary bit stream of length N with probablity of 0s and 1s
- Index(es):
Relevant Pages
|