why is this function not working?
1 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
Harsh Mahalwar
2023-5-14
编辑:Harsh Mahalwar
2023-5-14
Hey Nithish,
In order to call a function, you don't need to write "function" in front of it. You can simply call a function with this format:
[variable which will store the value returnded by the function] = [function name]([function parameters])
If you have to learn more about functions you can checkout this documentation.
0 个评论
Walter Roberson
2023-5-14
编辑:Walter Roberson
2023-5-14
If you are trying to create a function named update for the purpose of processing callbacks for the slider, then you will need to create the function inside a .m file. The only kind of functions that can be created at the command line are:
- anonymous functions
- symbolic functions
- inline functions
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scope Variables and Generate Names 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!