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?

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 22 Juil 2015
Modifié(e) : Azzi Abdelmalek le 22 Juil 2015

1 vote

just type the name of your script
your_cript

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by