Oopsy, doopsy! I just realize there are values > 1.0 in those columns! Oh boy! Egg on my face...
Here's the revised code :
for ROW = 1:row     
     if RGB_Axe_AB(ROW,1) < 0
        RGB_Axe_AB(ROW,1) = 0;
     end
     if RGB_Axe_AB(ROW,1) > 1
        RGB_Axe_AB(ROW,1) = 1;
     end
     if RGB_Axe_AB(ROW,2) < 0
        RGB_Axe_AB(ROW,2) = 0;
     end
      if RGB_Axe_AB(ROW,2) > 1
        RGB_Axe_AB(ROW,2) = 1;
     end
     if RGB_Axe_AB(ROW,3) < 0
        RGB_Axe_AB(ROW,3) = 0;
     end
     if RGB_Axe_AB(ROW,3) > 1
        RGB_Axe_AB(ROW,3) = 1;
     end
 end
Naturally, everything works now. No more errors....
Is there a way to do this process more efficiently? Without resorting to a loop?
Thank you in advance for your help and patience :-)






