MATLAB Answers

IDENTIFY THE POSITION OF SOME ELEMENTS INSIDE ANOTHER LONG LIST OF ELEMENT

6 views (last 30 days)
Hello Everybody!
Could anyone help me to find a proper matlab function to solve my problem? I have a long list of gene name and I need to identify their position inside another list of gene name. Which kind of matlab function I can use? Thanks a lot for your help.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 7 Feb 2020
[wasfound, index] = ismember(genes_to_find, fixed_list_of_gene_names);
Now if wasfound(K) is true then genes_to_find(K) was located at fixed_list_of_gene_names(index(K))

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by