Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Passing Variables to standalone compiled matlab function
Posted:
Nov 30, 2010 10:27 AM
|
|
I have found the cause for the error. If you enter:
filename.exe 1 "c:\data\dbase\"
the last \ dispappears, so I tried :
filename.exe 1 "c:\data\dbase\\"
and that works!
L
"ladidalimey" <ladidalimey@gmail.com> wrote in message news:qfRIo.163084$7p5.10274@newsfe22.ams2... > Hi, > > I have a matlab function that I have compiled into a standalone executable > in windows. > > As a matlab function, the to inputs are 1 and directory information > 'c:\data\dbase\', and I would use: > > functionname(1,'c:\data\dbase\'); > > when I call the function from a DOS shell I have tried: > > filename.exe 1 'c:\data\dbase\' > > but I get an error for too many input arguments. > > I have tried filename.exe 1 ['c:\data\dbase\'] > > with the same result. > > Please help. > > Thanks > > L. > >
|
|
|
|