Help in finding the matrix
Afficher commentaires plus anciens
Hello! I have a vector of values, and I need to find their location in the matrix
% 1000x100 matrix
% 1x100 data
6 commentaires
Lev Mihailov
le 12 Sep 2019
Adam Danz
le 12 Sep 2019
Now try to apply my hint. The documentation will help you understand how each function works.
Andrei Bobrov
le 12 Sep 2019
In this case, what result do you expect?
Lev Mihailov
le 12 Sep 2019
Adam Danz
le 12 Sep 2019
That's because all element of Y are indeed in X. Try it the other way around. X as the first input.
Réponses (1)
J Chen
le 12 Sep 2019
0 votes
You can use [row,col]=find( ) to get the location and use == to compare numbers
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!