Function that calls another function in LiveScript

1 回表示 (過去 30 日間)
alpedhuez
alpedhuez 2020 年 5 月 26 日
コメント済み: alpedhuez 2020 年 5 月 30 日
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 日
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 件)

カテゴリ

Help Center および 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