Suppose i have 4 double array a(i,j) of size 256*8 elements and y(i1,j1),z(i2,j2) and b(i3,j3)having size of 1*8,1*8,1*50 elements.
I want to compare all the rows of a(i,j) with y(i1,j1),z(i2,j2) and b(i3,j3). The condition is
if (a(i,j)==y(i1,j1) or a(i,j)==z(i2,j2)) and b(i)==0 a(i,j)=y(i1,j1); elseif b(i)==1 a(i,j)=z(i2,j2);
can anybody write the code perfectly.
Best Answer