link between m files

Good evening\morning
How can I do a link between multi m.files
I have a main code that will call the other m files depending on If condition

Answers (2)

Walter Roberson
Walter Roberson on 16 Dec 2011

1 vote

If you are trying to call upon a script rather than a function, use run()

2 Comments

or just type the mfile name.
run() is useful if you want to specify a path to the second file; it is also especially useful if the second file has the same name as the original.

Sign in to comment.

doc function
Would be a good place to start, along with the getting started documentatiob.

1 Comment

http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab

Sign in to comment.

Tags

Asked:

on 16 Dec 2011

Community Treasure Hunt

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

Start Hunting!