Matlab | Mechanical Engineering homework help

  • Use the Matlab perform, integral(·) to numerically combine the perform, y=x2 2xfour from1to5.Youwillhavetocreateafunctionandpassaperform

    deal with to quad(·). See Attaway 14.5. (Reply = ~four/Three)

  • Write a perform utilizing “for-loops” to combine the mathematical perform in Downside #1 utilizing Rectangular integration. Use “Left-corner” Rectangular Integration. The perform ought to take as inputs, a, b, N and a perform deal with and output the built-in consequence. (attempt N=1000) (Reply = ~four/Three)

  • Utilizing “for-loops”, combine the identical perform in Downside #1 utilizing Trapezoidal integration. Use the identical perform construction as in Downside #2. (Reply = ~four/Three)

  • Utilizing “for-loops”, combine the identical perform in Downside #1 utilizing Simpson’s 1/Three and three/eight Rule integration. Use the identical perform construction as in Downside #2. (attempt N=100) (Reply = ~four/Three)

  • Write three totally different features utilizing “for-loops” to combine the Gaussian regular distribution curve from [-σ, σ ], [-2σ, 2σ ], and [-Threeσ, 3σ ], utilizing Rectangular integration. Carry out all three sorts of Rectangular integration: 1) Left-corner; 2) Midpoint and three) Proper-corner. Use the identical perform construction as in Downside #2. Let μ be zero and let σ be 1. (attempt N=1000)

    (Reply = ~68.2%,~95.four%,~99.7%)