You are on page 1of 1

# \begin{comment}

\begin{verbatim}

g = 9.814;
ms1 = 0.1387 ;
ms2 = 0.1387 ;
ms3 = 0.1387 ;
m1 = 9;
m2 = 5.72 ;
m3 = 0.5589+0.5589+4.8658 ;
x = linspace(0,0.1);
q1 = (ms1*g/0.1);
r = -5238.84;
v1 = (q1*(x-0).*(x>0))-(r*(x-0.078).*(x>0.078))+(r*(x-0.088).*(x>0.088))-
(0.5*ms1*g) ;
M1 = -(0.5*q1*(x-0).^2.*(x>0))+(0.5*r*(x-0.078).^2.*(x>0.078))-(0.5*r*(x-
0.088).^2.*(x>0.088))+(0.5*ms1*g*(x-0.1).*(x>0.1));
delta1 = -(q1*(x-0).^4.*(x>0)/(2*3*4))+(r*(x-0.078).^4.*(x>0.078)/(2*3*4))-(r*(x-
0.088).^4.*(x>0.088)/(2*3*4))+(ms1*g*(x-0.1).^3.*(x>0.1)/(2*3*4));
subplot (3,1,1);
plot (x1,v1,'b')
xlabel(' x ');
ylabel(' sfd ');
subplot (3,1,2);
plot (x1,M1,'b')
xlabel(' x ');
ylabel(' bmd ');
subplot (3,1,3);
plot (x1,delta1,'b')
xlabel(' x ');
ylabel(' \delta ');
q2 = (ms2*g/0.1) ;
r1 = 60.4978 ;
r2 = 7.5622 ;
v2 = (q2*(x-0).*(x>0))-(r1*(x-0.04).*(x>0.04))+(r1*(x-0.05).*(x>0.05))-(r2*(x-
0.08).*(x>0.08)) ;
M2 = -(0.5*q2*(x-0).^2.*(x>0))+(0.5*r1*(x-0.04).^2.*(x>0.04))-(0.5*r1*(x-
0.05).^2.*(x>0.05))+(0.5*r2*(x-0.08).^2.*(x>0.08));
delta2 = -(0.5*q2*(x-0).^4.*(x>0)/(3*4))+(0.5*r1*(x-0.04).^4.*(x>0.04)/(3*4))-
(0.5*r1*(x-0.05).^4.*(x>0.05)/(3*4))+(0.5*r2*(x-0.08).^4.*(x>0.08)/(3*4)) ;
subplot (3,1,1);
plot (x,v2,'k')
xlabel(' x ');
ylabel(' sfd ');
subplot (3,1,2);
plot (x,M2,'k')
xlabel(' x ');
ylabel(' bmd ');
subplot (3,1,3);
plot (x,delta2,'k')
xlabel(' x ');
ylabel(' \delta ');

\end{verbatim}
\end{comment}