I'm new to Matlab. I need help with matrix comparison.
I have three matrices: R, S and T (size: 95956 x 1) and I need to compare all of their elements and see which elements are equal. Then we multiply the same values by a fourth matrix.
In a Matlab file, I read the coordinates and separate them into three matrices. Thus obtaining matrices R, S and T saved in "data.mat". Then I read in another file "data.mat" and used a For
loop:
for t=1:1:length(CoordinateIndex)
index = R == S;
ts=ts+1;
end
Is this correct and how I will multiply only those values which are equal to a fourth matrix?