MATLAB: Digital image Processing : Saving cropped Image

digital image processingImage Processing Toolboxsaving cropped portion

% I am reading an image using:
Io=imread('FileName.ext')
% I am visualizing the image
imshow(Io)
% i am cropping some portion using
imcrop(Io)
My Question is how to save the croprred portion as an image file with name: CFileName.ext

Best Answer

Io=imread('FileName.ext') ;
I1 = imcrop(lo) ;
imwrite(I1,'CFileName.ext') ;