MATLAB Answers

Filter Data In Table App Designer

52 views (last 30 days)
Eshe Boyette
Eshe Boyette on 29 Apr 2020 at 20:37
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

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.