Effacer les filtres
Effacer les filtres

I have two m files i need to call one m file in the program ?

1 vue (au cours des 30 derniers jours)
Ravi Kumar Poluru
Ravi Kumar Poluru le 12 Juil 2018
Modifié(e) : Adam Danz le 12 Juil 2018
I have two m files i need to call that program in to another m file
  1 commentaire
Jan
Jan le 12 Juil 2018
Yes. So what is your problem? Simply call the other M file as you would call any other Matlab function also.

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 12 Juil 2018
Modifié(e) : Adam Danz le 12 Juil 2018
If your m file is named 'myFunction.m', all you need to do to call it from another m file is to type its name. For example:
myFunction
% or
myFunction;
% or
myFunction(); %this indicates it's a function but brackets aren't required
If that didn't answer your question, please try again with more details.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by