MATLAB code to crop the portion of the image without using built in function.

The program have perform crop operation without in built functions.Without in-built function,the work is not easy.There are more function to use.

The below steps to perform the crop operations:
    1. first identify location which we needs to remove.
    2. Then tack the picture information from the starts points.
    3. Then move the row and tack value.
    4. draw images.


CODE:
clear all;
close all;
clc;

a=imread('cameraman.tif');
x=0;
y=0;
for n=95:130
    x=x+1;
    y=0;
    for m=38:73
        y=y+1;
        b(y,x)=a(m,n);
    end
end