Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.64 KB File ID: #23879

Run m-script from outside a Matlab window

by Lars Christiansen

 

24 Apr 2009

Calls a m-script from a "dos box" without starting the Matlab GUI. Use Matlab's C-compiler.

| Watch this File

File Information
Description

Ever needed to call an m-script from the command prompt ("dos box")? This C-code allows you to do just that in a simple way. Just call the exe-file you get from compiling it, and it will run the m-code you want. See guide on how to compile and use it in the comment within the code.

Example: I run a calibration software (PEST) written in FORTRAN. It controls all model calls and intermediate calculations. One of the models involved is in FORTRAN, the other in Matlab. With runMscript.exe I simply list my models one by one in a .bat file and am able to work from the command prompt, as PEST was written for.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
15 Apr 2011 Jean Daunizeau

Looks cool. Any version for 64 bits Windows?

07 Oct 2011 xiulan

Great, very useful!

07 Oct 2011 xiulan

Great, very useful!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
command window Lars Christiansen 24 Apr 2009 10:00:00
ccode Lars Christiansen 24 Apr 2009 10:00:02
embedded code Lars Christiansen 24 Apr 2009 10:00:02
modeling Lars Christiansen 24 Apr 2009 10:00:02
engine Lars Christiansen 24 Apr 2009 10:00:03
dos Lars Christiansen 24 Apr 2009 10:00:03

Contact us at files@mathworks.com