If you are a biginner in MATLAB programming for image processing than I suggest you to give a kick start with very basic MATLAB program to perform image transformation such as log transformation, power transformation, perform bit plane slicing, image reconstruction using bit slicing etc these are some of the very basic if u are stepping up to image processing using MATLAB. Good luck
I have attached a picture of a MATLAB code for performing log transformation of an image, I am assuming you have some ideas of how to read an image in the code and how to convert colour image into gray scale image etc. If this code is too simple than I can provide more complex code for image processing. Good luck once again