Function that calls another function in LiveScript
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
alpedhuez
le 26 Mai 2020
Commenté : alpedhuez
le 30 Mai 2020
In Livescript, can one write a function that calls another function both defined in the same script?
2 commentaires
Rik
le 26 Mai 2020
Why don't you try? Isn't that faster than waiting for an answer from someone seeing your questions?
Réponse acceptée
Walter Roberson
le 26 Mai 2020
Yes, provided that you are using a MATLAB release new enough to support functions in Live Scripts (which you are.)
Note that the name of the functions must be different than each other, and that neither one can be the same as the name of the live script.
I include an example.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Manage Products 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!