How to use a "list box", check box and plot all together in a GUI?
조회 수: 10 (최근 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!