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



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
        imshow(b);


OUTPUT: