170 likes | 264 Views
Engineering 36. Lab-23 Chp10 Beam VM Diagrams By Calculus. Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu. MATLAB V&M Diagrams. MatLab Code – Part-1. % Bruce Mayer, PE * 31Jul07 % ENGR36 * problem 10.1.28 % file = Prob10_1_28_VM_Plot.m %
E N D
Engineering 36 Lab-23 Chp10Beam VM DiagramsBy Calculus Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu
MatLab Code – Part-1 % Bruce Mayer, PE * 31Jul07 % ENGR36 * problem 10.1.28 % file = Prob10_1_28_VM_Plot.m % % Find V & M functions by calculus % Plot Using this File %% % clear % clears memory % % Calculate PieceWise Shear-Force Functions x1 = 0:.1:4; v1= -12.5*x1.^2+246.67; x2 = 4:0.1:8; v2 = -100*x2+446.67; x3 = 8:0.1:10; v3 = -353.3*(x3./x3) x4 = 10:0.1:12; v4 = 300*(x4./x4); x5 = 12.01; v5 = 0; % % Combine the pieces by appending xv = [x1 x2 x3 x4 x5]; v = [v1 v2 v3 v4 v5]; % plot v(x); use formating tools to adjust appearance plot(xv,v) ,xlabel('x (ft)'),ylabel('V (lbs)'), title('P10.1.28 Vertically Loaded Beam'), grid display('Shear-force plot complete; hit any key to continue') pause %
MatLab Code – Part-2 % Calculate PieceWise Bending-Moment Functions m1 = -25*x1.^3/6 + 246.67*x1; m2 = -50*x2.^2 + 446.67*x2 - 266.67; m3 = -353.3*x3 + 2933; m4 = 300*x4-3600; % Combine the pieces by appending xm = [x1 x2 x3 x4]; m = [m1 m2 m3 m4]; % plot v(x); use formating tools to adjust appearance plot(xm,m) ,xlabel('x (ft)'),ylabel('M (ft-lbs)'), title('P10.1.28 Vertically Loaded Beam'), grid