0

I am trying to create a function so that when I add a value to an edit field and push a button, only certain data displays from my data table. Like a filter. 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
Shone118
  • 61
  • 1
  • 1
  • 7

0 Answers0