does the GUI read scripts?
Show older comments
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 Comment
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.
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!