Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call a matlab script in a script

Tags:

matlab

I have two matlab script files .m (not function files) and if I want to call another script in my current script, which command should I use? Thank you.

like image 857
Sean Avatar asked Mar 08 '11 00:03

Sean


People also ask

How do I run a MATLAB script without MATLAB?

In order to run any Matlab program on a machine that doesn't have Matlab installed you will need to instal the Matlab Compiler Runtime (MCR). This is a pre-requisite as it contains the Matlab core functionality that is required by your application and it is royalty-free.


1 Answers

I found the answer.

Just name the script in the other script:

myOtherScript

You can use run('myOtherScript') if you prefer, but it will end up internally doing the same thing as naming it directly; you might, though, like the emphasize that it gives that it is a script being mentioned.

like image 168
Sean Avatar answered Oct 14 '22 11:10

Sean