The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Passing Variables to standalone compiled matlab function
Replies: 3   Last Post: Nov 30, 2010 10:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 25
Registered: 8/6/10
Re: Passing Variables to standalone compiled matlab function
Posted: Nov 30, 2010 10:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!


"ladidalimey" <> wrote in message
> 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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.