hello, i have a matrix of size (3 x 4 ) and i need to compare each column with a seperate row respectively.
this may seem confusing but bare with me.
for example.
A= [21 50 60 70
60 70 80 90
27 51 38 35]
B= 19 51 60
C= 20 60 80
D= 80 70 40
E= 50 40 95
RESULT= 51 60 70 95
60 80 80 95
51 60 40 40
so i want to know how to compare the first column in A with row B and second column in A with row C and so on....
baring in mind that when comparing each element, i need the verry next number from rows B C D and E.
1 Comment
dpb (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/452308-i-need-to-compare-two-arrays#comment_685704
Sign in to comment.