FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2004, 06:48 PM
Randy Yates
Guest
 
Posts: n/a
Default Running M-File from Command Line?

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.
--
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
randy.yates@sonyericsson.com, 919-472-1124
Reply With Quote
  #2 (permalink)  
Old 09-23-2004, 07:02 PM
Stan Pawlukiewicz
Guest
 
Posts: n/a
Default Re: Running M-File from Command Line?

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.
Reply With Quote
  #3 (permalink)  
Old 09-23-2004, 07:12 PM
Randy Yates
Guest
 
Posts: n/a
Default Re: Running M-File from Command Line?

Stan Pawlukiewicz <spam@spam.mitre.org> 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
randy.yates@sonyericsson.com, 919-472-1124
Reply With Quote
  #4 (permalink)  
Old 09-23-2004, 11:24 PM
Andrew Reilly
Guest
 
Posts: n/a
Default Re: Running M-File from Command Line?

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.


Can't answer this specific question, but if your m file is
appropriately constrained, then you can certainly run it from
octave at the command line. I frequently use it from make files
in exactly this way, for building dependent coefficient tables,
and the like.

(Actually, I'm moving towards using Python for this purpose,
because it's more readily available, thanks to simpler licence
conditions. It does have its own limitations, though, so the move
is gradual...)

--
Andrew
Reply With Quote
  #5 (permalink)  
Old 09-29-2004, 12:55 AM
James K.
Guest
 
Posts: n/a
Default Re: Running M-File from Command Line?

> (Actually, I'm moving towards using Python for this purpose,

When we decide to use Platform like Python instead of Matlab,
we should not forget the running speed which is now very high in Matlab
because it can compile m-codes very effectively.
--
Best regards,
James K. (txdiversity@hotmail.com)
[Home] http://home.naver.com/txdiversity


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing verilog Input File as a command line define SB Verilog 4 01-18-2008 07:25 AM
ISE 8.2 and partitions from command line Andreas Ehliar FPGA 5 10-12-2006 09:38 AM
S3 starter kit, command-line burn.sir@gmail.com FPGA 7 08-21-2006 09:56 AM
[CCS] assembler command line Curl DSP 2 02-18-2004 08:30 AM


All times are GMT +1. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved