Function that calls another function in LiveScript

3 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 26 Mai 2020
Kommentiert: alpedhuez am 30 Mai 2020
In Livescript, can one write a function that calls another function both defined in the same script?
  2 Kommentare
Rik
Rik am 26 Mai 2020
Why don't you try? Isn't that faster than waiting for an answer from someone seeing your questions?
alpedhuez
alpedhuez am 26 Mai 2020
Have been working on it.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by