How to call a function m-file within another m-file
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I call a separate function m-file within a for-loop of another m-file? Both are saved in the same path.
0 commentaires
Réponse acceptée
Fangjun Jiang
le 30 Sep 2011
Just call that function. If you have a function called myfun defined in myfun.m, you can call it anywhere in another m file.
a=1;
for k=1:3
myfun;
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements 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!