How to use a "list box", check box and plot all together in a GUI?
9 次查看(过去 30 天)
显示 更早的评论
I would like to use a list box command, check box command and a plot command all together in a GUI in Matlab. My sketch is on the attachment.
Is there any one who can help with this?
Thanks in advance :))))
Ercan
回答(3 个)
Image Analyst
2016-12-15
This is exactly what MAGIC does: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
Description
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can .........
You don't need to use image processing to use it though - it's very general. You can use whatever kind of data files you want and process them however you want. This app just takes care of the boilerplate plumbing of the GUI and you can customize it from there.
0 个评论
Image Analyst
2016-12-20
You forgot to assign a few of the controls to handle variables in your code. You only did that for checkbox1 which handles Solenoid D. You need to do that:
checkbox_Solenoid_A = uicontrol('Style', 'Checkbox',...
'String','Solenoid A',...
'Position', [10,500,100,20],...
'Callback', @Pressed_Solenoid_A);
Then to get/check the value do this:
if checkbox_Solenoid_A.Value
% It's checked.
else
% It's not checked.
end
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!