Function that calls another function in LiveScript

In Livescript, can one write a function that calls another function both defined in the same script?

2 comentarios

Rik
Rik el 26 de Mayo de 2020
Why don't you try? Isn't that faster than waiting for an answer from someone seeing your questions?
alpedhuez
alpedhuez el 26 de Mayo de 2020
Have been working on it.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Mayo de 2020

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 26 de Mayo de 2020

Comentada:

el 30 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by