for i=1:n-1 for j=1:n-1 for r=1:332 if i + r > 333 data(i+r,:)=0; *else if i-r = < 0 data(i-r,:)=0;* else if j+r > 333 data(:,j+r)=0; else if j-r = < 0 data(:,j-r)=0; end end end end end end end
Please tell me how I can correct the error at i-r = < 0
Best Answer