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 件のコメント

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

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2020 年 5 月 26 日

0 投票

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.

1 件のコメント

alpedhuez
alpedhuez 2020 年 5 月 30 日
Thank you. Let me work on it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

製品

リリース

R2020a

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by