i want solve this question by matlab codeSolutionclearing wi
i want solve this question by matlab code
Solution
%clearing window, variables and figures
 clear all;
 close all;
 clf;
 clc;
 l=0:.01:144;
 h=l.*(1/2^0.5); %h=lcos(45)
 ba=l.*(1/2^0.5); %ba= lsin(45)
 %area=b*h+h*ba;
 b=(144-h.*ba)./(h);
 s=min(2*l+b) %minimum P;
 L=length(l);
 for i=1:1:L
 if(s==2*l(:,i)+b(:,i))
 length=l(:,i) %length corresponding to minimum area
 breadth=b(:,i) %breadth corresponding to minimum area
 end
 end
Result;
s =
32.4526
 length =
12.5500
 breadth =
7.3526

