필터 지우기
필터 지우기

Retrieve data of a row in the table

조회 수: 1 (최근 30일)
hang dong
hang dong 2019년 5월 26일
댓글: hang dong 2019년 5월 26일
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
hang dong
hang dong 2019년 5월 26일
What is the error when running the results below?
2.PNG

댓글을 달려면 로그인하십시오.

답변 (1개)

J. Alex Lee
J. Alex Lee 2019년 5월 26일
You could do
T.pos(T.iwant==542031)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by