i want to replace the element of array BW with element of array 'a' when element of BW is zero. Here is the code i have written
for i=0:row
for j=0:col
if BW(i,j)==0
BW(i,j)=a(i,j);
end
end
end
i get error for if BW(i,j)=0