MATLAB: How to run an m.file by another m.file

m-filematlab function

Hi all
is creating the function the only way to run an m file by another m file ? cause I did not want to get an output or give it an input , cause the main m file is already writing the outputs to a text file

Best Answer

You just need to write the file name on the specific line of your program and make sure the other file exist in the same directory if not go with the absolute path.
Related Question