How to display only certain UITable data in a graph?

Hello,
I am trying to call data from a UITable to be displayed in a graph. The UITable displays imported data from an excel document and adds a checkbox column in the first column position. I want to display all of the data from column 'n' from the uitable in the graph, except for the rows that the checkbox has been deselected.
I appreciate any help

回答 (1 件)

Kevin Holly
Kevin Holly 2022 年 12 月 15 日

0 投票

Obtain values from the first column that contains the check boxes.
selected = app.UITable.Data(:,1);
Use the logic array (selected) to specify the rows to read.
Selected_Data = app.UITable.Data(selected,:);
plot(app.UIAxes,Selected_Data)
Unable to resolve the name 'app.UITable.Data'.

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2022 年 12 月 15 日

回答済み:

2022 年 12 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by