MATLAB Answers


Retrieve data of a row in the table

Asked by hang dong on 26 May 2019
Latest activity Commented on by hang dong on 26 May 2019
I have a table with 2 columns as follows:
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 Comment

What is the error when running the results below?

Sign in to comment.

1 Answer

Answer by J. Alex Lee on 26 May 2019

You could do


Sign in to comment.