MATLAB: How to determine the rows and columns of an image

rows and columns of image matrix

after imread('car.jpg'); how to determine the matrix of this image? and how to determine the number of rows and columns of this input image?
how to use the following command to determine rows and columns: [rows columns]=size(array2D);

Best Answer

save your imread data in some variable.
ImageData=imread('car.jpg');
ImageData will be a 3 D array for Colour Image with R, G, B Amplitude Values.
You can do a
[rows columns depth]=size(ImageData );
on it.
Related Question