How to call .m file?

160 views (last 30 days)
peyush
peyush on 22 Jul 2015
Commented: peyush on 23 Jul 2015
I have a main.m script, I want to perform some operation again and again, so I created another .m file named op.m, I need to call op.m inside main.m whenever required....how to call it inside main.m......PS: also in op.m file, should I write return at the end or it returns automatically to the main script after doing the operation?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 22 Jul 2015
Edited: Azzi Abdelmalek on 22 Jul 2015
just type the name of your script
your_cript

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!