How to call .m file?

34 vues (au cours des 30 derniers jours)
peyush
peyush le 22 Juil 2015
Commenté : peyush le 23 Juil 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?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 22 Juil 2015
Modifié(e) : Azzi Abdelmalek le 22 Juil 2015
just type the name of your script
your_cript
  1 commentaire
peyush
peyush le 23 Juil 2015
thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center 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