Borrar filtros
Borrar filtros

Retrieve data of a row in the table

1 visualización (últimos 30 días)
hang dong
hang dong el 26 de Mayo de 2019
Comentada: hang dong el 26 de Mayo de 2019
I have a table with 2 columns as follows:
1.PNG
pos column consists of integers from 1 -> n,
iwant column contains permutations of string 012345
How can I get a pos when I know iwant?
desired results: iwant = '542031' ---> pos = 11
Help me! Thank you very much!
  1 comentario
hang dong
hang dong el 26 de Mayo de 2019
What is the error when running the results below?
2.PNG

Iniciar sesión para comentar.

Respuestas (1)

J. Alex Lee
J. Alex Lee el 26 de Mayo de 2019
You could do
T.pos(T.iwant==542031)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by