Compare editfield.value to table values in app designer

2 views (last 30 days)
Hello.
I wanna make an app that is comparing a value(from editfield numeric) to a table imported from excel. The table has 3 columns (z , f , d). The value has to be found in the z column. If found, the f and d colums values coresponding to z has to be displayed. Can you help me? It's my first app made in app designer.
  5 Comments
Andrei Iulian
Andrei Iulian on 17 Jun 2021
i tried this way, and it send me this error "Undefined function 'eq' for input arguments of type 'table'." .
What i specifically want to do is:
if(app.EditField.Value == app.UITable.Data(:,1) (if the value is found in the first column of the table)
app.EditField2.Value=app.UITable.Data(app.EditField.Value,2) (editfield2 gets the value of editfield row, column 2)
I wrote this as an example, i don't know how to write it corectly, that's why i need help.
Thank you!

Sign in to comment.

Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!