my code is given below-
w=imread('win.png');%its a 32X32 picture
for i=1:32 for j=1:32 wrr(i,j)=w(i,j)*.02; endenddisp('wrr');disp(wrr);
the problem is- its rounding the pixel values,like if w(i,j)=178 then after multiplication with .02 wrr(i,j)=4 where it should be 3.56. i need the floating point for further work. can anyone help?
Best Answer