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: Command line questions...
Replies: 4   Last Post: Jul 30, 2008 10:30 AM

Advanced Search

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

Posts: 11
Registered: 7/6/08
Re: Command line questions...
Posted: Jul 7, 2008 12:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Scott Hirsch" <> wrote in
message <g4suri$oi1$>...
> Ray -
> Could you clarify what you mean by "Command Line"? Are

> referring to the MATLAB Command Line, or a system prompt?
> If you want to launch MATLAB and have it run specific

> from a system prompt, you can use the -r startup flag,
> > matlab -r "mymfile"
> The MCR (I assume this is what you are referring to) is an
> execution engine only for applications compiled through

> MATLAB compiler. You can't run arbitrary m-files against
> it. The only legitimate source of distribution of the MCR
> is from a licensee of the Compiler - i.e., somebody who

> the MATLAB compiler can give copies of the MCR to people
> want to run the applications they build with it.

Hi Scott,

Yes, in retrospect I was very ambiguous. I'm referring to
the System Command Line (the DOS prompt, as it were).

To run a .m file function named FunctionName in a file by
the same name, I have gotten the following to work, as you

matlab -nodesktop -nosplash -r FunctionName

However, the function I am starting needs 6 arguments, with
the first 3 being floating point numbers and the last 3
being strings. I've tried every weird permutation I can
think of but the values I put in just never get through:

matlab -nodesktop -nosplash -r FunctionName arg1 arg2 arg3

This part has me stumped. I tried also using variable
argument detection withing the .m file function, but I
haven't gotten that to work either. I finally resorted to
simply putting the arguments in a file, then letting the .m
function read them from there. That works, but what a


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.