a = imread('autumn.tif');
a = double(a);
[row col dim] = size(a);
red = a(:, :, 1);
green = a(:, :, 2);
blue = a(:, :, 3);
What does the colon :
in the last three lines mean? (The above snippet is from "Image Processing" by Dhananjay Theckedath.)