if nested functions supported in live scripts
古いコメントを表示
Are nested functions supported in live scripts? Otherwise, global variables have to be declared as global?
6 件のコメント
Dyuman Joshi
2024 年 2 月 27 日
"Are nested functions supported in live scripts?"
Yes.
"Otherwise, global variables have to be declared as global?"
global variables always need to be declared as global.
feynman feynman
2024 年 2 月 27 日
Dyuman Joshi
2024 年 2 月 27 日
Which functions gave you the error? And what was the error they gave?
feynman feynman
2024 年 2 月 27 日
編集済み: feynman feynman
2024 年 2 月 27 日
Dyuman Joshi
2024 年 2 月 27 日
A function needs to be called by using its name and providing any inputs required to run it. That is the case in both functions (.m) and live functions (.mlx).
If, a function does not require any input to run, you can run it (.m file) by pressing the green button.
However, that is not the case with live function (.mlx file), for which you need to explicitly call it.
feynman feynman
2024 年 2 月 27 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
