View Single Post
  #3 (permalink)  
Old 09-23-2004, 08:12 PM
Randy Yates
Guest
 
Posts: n/a
Default Re: Running M-File from Command Line?

Stan Pawlukiewicz <[email protected]> writes:

> Randy Yates wrote:
> > Is there a way to invoke Matlab to run a single m-file?
> > The purpose is to be able to "build" matlab output files
> > from a make file.

>
>
> matlab -r matlab_cmd
>
>
> I haven't done this since version 3.5 or so, so you might need to play
> with it.
>
>
> matlab -help does work for release 14 running in linux.


Thanks Stan. The following did it:

matlab -r mymatlabfunction -nodesktop -nojvm -nosplash <exitcmd.txt

where "exitcmd.txt" is:

exit

It's MUCH faster getting in and out, too.
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
[email protected], 919-472-1124
Reply With Quote