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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With