Filter Data In Table App Designer

2 views (last 30 days)
Eshe Boyette
Eshe Boyette on 29 Apr 2020
I am trying to create a all back so that when I add a value to an edit field and push a button, only certain data displays from my data table. It is not filtering. Please help. I am new to MATLAB. Thank you!
t = readtable('us-states.xlsx');
app.UITable.Data = t;
Filter = app.FIPSIDEditField.Value;
numRows = size (app.t,1);
k=1;
for i = 1:numRows
if app.UITable.Data{i,4} == Filter
RowstoDel(1,k) = i;
k = k + 1;
end
end

Answers (0)

Categories

Find more on Develop Apps Using App Designer 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!