MATLAB: Comparing two vectors with different dimensions

vector comparison

Hello,
How can you compare two vectors with different number of elements? I am just trying to find the equal elements. Thanks!

Best Answer

Your question is fairly vague, but I have a feeling that either the ismember() command or the intersect() command will help you do what you want.