IDENTIFY THE POSITION OF SOME ELEMENTS INSIDE ANOTHER LONG LIST OF ELEMENT
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 7 Fév 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))
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!