Plotting data based on selected checkboxes
显示 更早的评论
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 :-)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Exploration and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!