does the GUI read scripts?
显示 更早的评论
Hello Guys, I have a question please. I started to watch tutorials on YouTube about the Graphical user interface on matlab, because I wrote many codes and I need to visualize them. my question is: my codes are written on scripts, I didn't make then as function, Can the Graphical user interface deal with scripts? or should I have them as functions? another question , how can I learn more about this. thank you guys.
1 个评论
Even if it did, you should not be using scripts. Scripts might be fun for playing around in the command window, but if you want to write code that is efficient, repeatable, and debuggable then you need to be writing functions or classes.
Rule of thumb: if your code is going to be used for more than one day, turn it into a function. Test it, document it, write clear input and output specifications.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!