Function that calls another function in LiveScript

4 visualizzazioni (ultimi 30 giorni)
In Livescript, can one write a function that calls another function both defined in the same script?
  2 Commenti
Rik
Rik il 26 Mag 2020
Why don't you try? Isn't that faster than waiting for an answer from someone seeing your questions?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 26 Mag 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.

Più risposte (0)

Categorie

Scopri di più su Manage Products in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by