Compare editfield.value to table values in app designer

2 次查看(过去 30 天)
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 个评论
Andrei Iulian
Andrei Iulian 2021-6-17
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!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by