Compare editfield.value to table values in app designer

1 visualización (últimos 30 días)
Andrei Iulian
Andrei Iulian el 16 de Jun. de 2021
Comentada: Mario Malic el 17 de Jun. de 2021
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 comentarios
Andrei Iulian
Andrei Iulian el 17 de Jun. de 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!
Mario Malic
Mario Malic el 17 de Jun. de 2021
Show complete error. I don't see eq anywhere

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by