· problem 5.3 b) close all clear all x1=linspace(0,1,1000); %ab x2=linspace(1,3,2000); %bc...
TRANSCRIPT
Problem 5.3
b)
close all clear all x1=linspace(0,1,1000); %AB x2=linspace(1,3,2000); %BC
Vx1=-180+0*x1;Mx1=120-180*x1; %AB Vx2=-120+0*x2;Mx2=60-120*x2; %BC
figure (1) subplot(2,1,1) plot ([x1 x2], [Vx1 Vx2],'-b','LineWidth',3) xlabel('x(m)','fontsize', 20),ylabel('V(N)','fontsize', 20) axis([0,3,-200,20]) set(gca,'fontsize', 20) grid on
subplot(2,1,2) plot ([x1 x2], [Mx1 Mx2],'-b','LineWidth',3) xlabel('x(m)','fontsize', 20),ylabel('M(Nm)','fontsize', 20) axis([0,3,-320,140]) set(gca,'fontsize', 20) grid on
Problem 5.4
b)
close all clear all x1=linspace(0,1,1000); %AB x2=linspace(1,2,1000); %BC x3=linspace(2,3,1000); %CD
Vx1=0*x1;Mx1=0*x1; %AB Vx2=100-100*x2;Mx2=-50+100*x2-50*x2.^2; %BC Vx3=-100+0*x3;Mx3=150-100*x3; %CD
figure (1) subplot(2,1,1) plot ([x1 x2 x3], [Vx1 Vx2 Vx3],'-b','LineWidth',3) xlabel('x(m)','fontsize', 20),ylabel('V(N)','fontsize', 20) axis([0,3,-120,20]) set(gca,'fontsize', 20) grid on
subplot(2,1,2) plot ([x1 x2 x3], [Mx1 Mx2 Mx3],'-b','LineWidth',3) xlabel('x(m)','fontsize', 20),ylabel('M(Nm)','fontsize', 20) axis([0,3,-170,20]) set(gca,'fontsize', 20) grid on