MATLAB: Which lines between two vectors are not equal

return linestrue falsezeros

Hi everyone,
I am looking at two vectors, and I want matlab to tell me at which lines they two vectors are not equal. I will attach two sample columns of 0's and 1's. For example, the csv file I've uploaded is NOT equal at (4:7,:) and (14:15,:). How can I have matlab return that information to me?
Thanks in advance!

Best Answer

data(:,1) ~= data(:,2)
??