MATLAB: How to find common elements in each row of two different matrices?the output must be an array whose rows are made up with the element in common of each row of the matrices in input

common elementsdifferent matrices

Sorry I am a very beginner in Matlab but I hope someone could explain me where I made a mistake and how I could get the output requested. Thank you Matrix A 363×1226 Matrix B 363×1226 Qq=1:363 For C(qq,:) =intersect(A(qq,:), B(qq, 🙂 ; End

Best Answer

Yes, the above provided example should give some insight in to getting your output
for further study refer to link, to learn accessing matrices