How to use a "list box", check box and plot all together in a GUI?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
2 comentarios
Respuestas (3)
Image Analyst
el 15 de Dic. de 2016
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 comentarios
Image Analyst
el 20 de Dic. de 2016
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 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!