Matlab: Running an m-file from command-line
Asked 07 September, 2021
Viewed 1.5K times
  • 57
Votes

Suppose that;

I have an m-file at location:
C:M1M2M3mfile.m

And exe file of the matlab is at this location:
C:E1E2E3matlab.exe

I want to run this m-file with Matlab, from command-line, for example inside a .bat file. How can I do this, is there a way to do it?

10 Answer