Question: Solve problem 2 3 and 4 using matlab and include the screenshot of the code please , thank you command. Ensure that you organize each

 Solve problem 2 3 and 4 using matlab and include the

Solve problem 2 3 and 4 using matlab and include the screenshot of the code please , thank you

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= x2-2x-4 from 1 to 5. You will have to create a function and pass afunction handle togtaal . ) . See Attaway 14.5. (Answer =-4/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) 4. Using "for-loops", integrate the same function in Problem #1 using Simpson's 13 and 38 Rule integration. Use the same function structure as in Problem #2. try N-100) (Answer43) 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= x2-2x-4 from 1 to 5. You will have to create a function and pass afunction handle togtaal . ) . See Attaway 14.5. (Answer =-4/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) 4. Using "for-loops", integrate the same function in Problem #1 using Simpson's 13 and 38 Rule integration. Use the same function structure as in Problem #2. try N-100) (Answer43)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!