MATLAB Answers

how to run an m.file by another m.file ?

505 views (last 30 days)
farzad
farzad on 11 Apr 2015
Commented: suman jain on 3 Feb 2019
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

Accepted Answer

KL
KL on 11 Apr 2015
Edited: KL on 11 Apr 2015
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.
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!