フィルターのクリア

How can I use checked nodes to isolate data in a matrix from a uicheckboxtree ?

3 ビュー (過去 30 日間)
Hi everyone,
In appDesigner, I imported data for statistical analysis, through a matrix of (observations x variables).
I generated a uicheckboxtree from the variables names, and would like to be able to check the nodes of relevant variables to then process to statistical analysis.
I cannot find the way to extract usable information from the figure object 'CheckBoxTree' ...
I was hoping to get some sort of a 0 | 1 | 1 | 0 test for the selected/unselected nodes, from which I could filter relevant data.
Or maybe there's another more relevant way to achieve what I'm trying to do (destined to simplify and automate processes for non-MatLab users ?).
Thanks in advance for your help !

採用された回答

Thibault MARIN
Thibault MARIN 2022 年 2 月 24 日
Well I found a way, maybe not the best one but it works so far for what I needed to do, so, if it can help anyone...
for i = 1:1:numel(app.tree.CheckedNodes)
app.sDATA(:,i) = app.DATA{:,(app.tree.CheckedNodes(i).Text)};
end
where DATA is a table where the VariableNames are identical to the tree nodes text labels.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by