Question: Please solve problem 1 to 4 using matlab and include rhe screenshot of the code , thank you so much Homework #9 Spring 2016 Due

Please solve problem 1 to 4 using matlab and include rhe screenshot of the code , thank you so much
Homework #9 Spring 2016 Due Monday, Apr. 25 uploaded through TCU eCollege DropBox by 12:00 Midnight. Upload one function, studentlastname_howmework9 () in a single m-file that runs each problem along with all of the subfunctions that work that particular problem. The homework problems should run sequentially showing plots and the proof that each subfunction works correctly. The single m-file that you turn in is the code that will be graded. Open a new figure for every figure by using the figure command. Ensure that you organize each problem properly and answer the question fully. Also ensure that your answers make sense 1. Use the Matlab function, integral to numerically integrate the function, y x-2x-4 from 1 to 5. You will have to create a function and pass a function handle to-quad). See Attaway 14.5. (Answer4/3) 2. Write a function using "for-loops" to integrate the mathematical function in Problem #1 using Rectangular integration. Use "Left-corner" Rectangular Integration. The function should take as inputs, a, b, N and a function handle and output the integrated result. (try N-1000) (Answer =-4/3) 3. Using for-loops", integrate the same function in Problem #1 using Trapezoidal integration. Use the same function structure as in Problem #2. (Answer ~4/3) Using yor-loops", integrate the same function in Problem #1 using Simpson's 13 and 3/8 Rule integration. Use the same function structure as in Problem #2. 4. (try N-100) (Answer -4/3) 5. Write three different functions using "for-loops" to integrate the Gaussian normal distribution curve from [-co],[2?,2?], and [-3a, 3o], using Rectangular integration. Perform all three types of Rectangular integration: 1) Left-corner; 2) Midpoint and 3) Right-corner. Use the same function structure as in Problem #2. Letu be O and let ? be l' (try N-1000) (Answere-68.2%-95.4%,-99. 7%) Homework #9 Spring 2016 Due Monday, Apr. 25 uploaded through TCU eCollege DropBox by 12:00 Midnight. Upload one function, studentlastname_howmework9 () in a single m-file that runs each problem along with all of the subfunctions that work that particular problem. The homework problems should run sequentially showing plots and the proof that each subfunction works correctly. The single m-file that you turn in is the code that will be graded. Open a new figure for every figure by using the figure command. Ensure that you organize each problem properly and answer the question fully. Also ensure that your answers make sense 1. Use the Matlab function, integral to numerically integrate the function, y x-2x-4 from 1 to 5. You will have to create a function and pass a function handle to-quad). See Attaway 14.5. (Answer4/3) 2. Write a function using "for-loops" to integrate the mathematical function in Problem #1 using Rectangular integration. Use "Left-corner" Rectangular Integration. The function should take as inputs, a, b, N and a function handle and output the integrated result. (try N-1000) (Answer =-4/3) 3. Using for-loops", integrate the same function in Problem #1 using Trapezoidal integration. Use the same function structure as in Problem #2. (Answer ~4/3) Using yor-loops", integrate the same function in Problem #1 using Simpson's 13 and 3/8 Rule integration. Use the same function structure as in Problem #2. 4. (try N-100) (Answer -4/3) 5. Write three different functions using "for-loops" to integrate the Gaussian normal distribution curve from [-co],[2?,2?], and [-3a, 3o], using Rectangular integration. Perform all three types of Rectangular integration: 1) Left-corner; 2) Midpoint and 3) Right-corner. Use the same function structure as in Problem #2. Letu be O and let ? be l' (try N-1000) (Answere-68.2%-95.4%,-99. 7%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
