Get rid of the semicolon and the value will report to the command window:
V_image = var(IM(:))
Beware though that im2double will scale the image to the range 0-1, so your variance will be the variance of that scaled image,not of the original image. If you want the variance of the original image,use double() instead of im2double().
Best Answer