Effacer les filtres
Effacer les filtres

advantages of nested functions

2 vues (au cours des 30 derniers jours)
Muazma Ali
Muazma Ali le 6 Déc 2021
Réponse apportée : Matt J le 6 Déc 2021
Hi ! :)
I am wondering about what the advantages are of using nested functions other than that the workspace of parent function will be available fo rnested functions. If I had written a long function, would it have taken longer time to run that function than if I had nested som functions within a parent function..?

Réponses (1)

Matt J
Matt J le 6 Déc 2021
Another advantage is that it allows you to store function parameters in handles, see,

Catégories

En savoir plus sur Data Types 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