I want to read in an image (a .jpg image) into MATLAB, but using the
Image = imread('image.jpg');
function converts the image into a 3-d or maybe 5-d array i.e. x,y,RGB or x,y,R,G,B. What I want is to be able to read the image into MATLAB as a 2-d array of numbers, so instead of each pixel having 3 numbers to define it's colour (i.e. R G B) it would have just one number to define colour. Then I want to use the
function to view the 2-d array graphically.
Any help with this would be much appreciated.