Import additional code/functionality into running executable
2 次查看(过去 30 天)
显示 更早的评论
If I have an executable running with some standard functionality, and I want to implement some additional functionality on a case by case basis, without directly adding it into the existing code, would that be possible?
Say I had a GUI/executable, I was envisioning a button in the main GUI to load an "add-on" function. I guess I could have the main GUI call an add-on GUI (and associated code), and worry about passing information between them, however that might not be the most elegant way.
I was also thinking of implementing a sort of tabbed structure with buttons and uipanels, and having the main functionality on the first panel, then trying to load the add-on, if required, into a second uipanel, however, I don't know if it's possible to load a GUI within a GUI.
Any thoughts on this?
0 个评论
采纳的回答
Image Analyst
2013-9-5
Sure. Just make functions. They could be in the same m-file, or in separate ones. At the appropriate time, just call the appropriate function. Look up functions in the help. Yes, you can have panels and make them visible or invisible but that doesn't really change the code - it just changes whether it's possible to call the code or not depending on whether you see that panel or not, but the code will still be in there regardless of whether your panel is visible or not.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!