
Chanti T. answered 06/17/24
Basics of MATLAB
If I am understanding it correctly, your asking how to call an m.file into another, or how to call a script file into a m.file, correct?
IF so, then in your m.file (master), go to the line in your code where you want the other file called in (equations) and then:
If (equations) file is another m.file:
[out1, out2] = myfilename(input);
Something like this should work.
IF (equations) file is a script:
myfilename
All you have to do is write it in as such if its a script.