i have a gray scale image and wish to obtain values in matrix form.(as in an n x m matrix).This is what i have attempted :
I = imread('cameraman.tiff');[xmax,ymax]=size(I)for x=0:1:xmax for y=0:1:ymax I(x,y) end end
but am getting an error:
??? Subscript indices must either be real positive integers or logicals.
Best Answer