is it possible to write a function inside a script?
2 次查看(过去 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.
另请参阅
类别
在 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!