How can i get a logical vector for all rows when compare each row of a column matrix with a another row column matrix
2 views (last 30 days)
Show older comments
Chaudhary P Patel on 28 Oct 2022
Commented: Chaudhary P Patel on 29 Oct 2022
I have two matrix A and B, i want to compare these to matrix to get logical vector for each row.
Davide Masiello on 28 Oct 2022
You can simply do
A = randi(10,5)
B = randi(10,5)
l = A == B
More Answers (0)
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!