Hi Rajeshwar,
There is no as such function which can remove inscribed rectancles.
But you may write a similar code like this in which i want to return that rectangle which has larger area.
A = [1 2 5 6]; %Rectangle A
B = [1 2 3 4]; %Rectangle B
%Rectangle B is completely inscribed in Rectangle A
area = rectint(A, B); %returning area inscribed
if ~area %if area is not zero
return max(A, B); %return maximum area rectangle
end
rectangle('Position', max(A,B)); %plotting maximum area rectangle
axis([0 10 0 10]);
You may look at these documentations for further help:
Hope this Helps!