Plotting data based on selected checkboxes
Show older comments
I am currently working on malarial cell recognition. In that I have so far succeeded to extract features from the images. There are 49 features in total. I have arranged the features such that each field represents a feature. So the struct feature contains 49 fields. Now i have to generate ksdensity plots for each of the features. For this, I plan to generate a list of checkboxes displayed on the left half of the window with each checkbox having the name of each of the features. When a user selects a checkbox, the corresponding ksdensity plot should be generated on the right half of the figure window. I don't know how to start coding this. Can someone help me? I tried this to create the list of boxes but it is creating from the bottom. I want it from the top.
f= figure;
fields = fieldnames(feature);
for k=1:1:length(fields)
chkbox(k) = uicontrol('Style','checkbox','String',fields{k}, ...
'Value',0,'Position',[30 20*k 130 20], ...
'Callback',{@checkBoxCallback,k});
end
P.S. This is my first ever question on MATLAB Answers. So if something is missing please reply but don't flag :-)
Accepted Answer
More Answers (0)
Categories
Find more on Exploration and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!