You can try using GUIDE (type "guide" into the command window). I prefer writing my own GUIs from scratch because I'm not a fan of how GUIDE organizes things. If you've never made a GUI before, I'd recommend GUIDE, it's fairly easy to use and understand. You can create a GUI which has buttons with callbacks to run your .m files.
How to build a GUI from a m-file?
16 次查看(过去 30 天)
显示 更早的评论
Hi guys,
Im new with GUI on Matlab and it would be very nice if someone could help just a little bit !
I currently have a m-file that will be used for signal post-processing. This m-files includes parameters such as sampling frequency, frequency span and many others... All these parameters have to be edited by the user before running the m-file. While running, the m-file executes some operations like importing data, plotting, filtering... But these operations have been directly programmed in the m-file, there are no functions.
As I wanted to make this code more user friendly, I would like to implant a GUI so as the code would be more easy to use. The GUI would let the user set the parameters (such as frequency span...) and compile parts of the m-file while clicking buttons (for exemple, the button "Import data" will run the m-file coressponding lines
How should I do that the easiest way as possible? How would you do?
0 个评论
回答(1 个)
另请参阅
类别
在 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!