Help in finding the matrix
显示 更早的评论
Hello! I have a vector of values, and I need to find their location in the matrix
% 1000x100 matrix
% 1x100 data
6 个评论
Lev Mihailov
2019-9-12
Adam Danz
2019-9-12
Now try to apply my hint. The documentation will help you understand how each function works.
Andrei Bobrov
2019-9-12
In this case, what result do you expect?
Lev Mihailov
2019-9-12
Adam Danz
2019-9-12
That's because all element of Y are indeed in X. Try it the other way around. X as the first input.
回答(1 个)
J Chen
2019-9-12
0 个投票
You can use [row,col]=find( ) to get the location and use == to compare numbers
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!