crop image with specific resolution in image in matlab
<p>i want to crop an image with specific resolution for example h*w*3. </p>

<p><a href="https://i.stack.imgur.com/Gp40M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gp40M.png" alt="picture"></a></p>

<p>In the above image red image is original image. blue part is the selection of a portion of image with specific size. it can able to move around the image and crop the portion. how to do this in matlab? in matlab selection tool is there to select the portion, but we don't no which size we are selecting. how to do this. kindly help me</p>