is it possible to write a function inside a script?
3 ビュー (過去 30 日間)
古いコメントを表示
is it possible to write a function inside a script? for example is it possible to put at the end of the script?
0 件のコメント
採用された回答
hatim boui
2017 年 1 月 25 日
1 件のコメント
Jan
2017 年 1 月 25 日
This has been discussed such frequently in this forum, that it got tedious. And now the answer has changed. Wow.
その他の回答 (2 件)
Lucijano Berus
2018 年 3 月 19 日
calling subfunctions: https://www.coursera.org/learn/matlab/lecture/9N7ZS/subfunctions
1 件のコメント
Walter Roberson
2018 年 3 月 19 日
subfunctions are not relevant to the question of whether you can define a function inside a script.
John D'Errico
2015 年 6 月 28 日
Short answer: No.
Longer answer: Nnnnnooooo.
Not much else I can say.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Block and Blockset Authoring についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!