Comparing between Array Elements and result matrix too
Show older comments
hey.. i want to comparing two matrix for example
a = [ 1 2 3 4 5 6]
b = [ 1 3 2 4 5 6; 1 2 3 4 5 6; 2 2 3 4 5 6]
if elemen in matrix a same with elemen matrix b, its result
c = [1 0 0 1 1 1; 1 1 1 1 1 1; 0 1 1 1 1 1]
Do you have any suggestion ? thanks..
Accepted Answer
More Answers (0)
Categories
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!