Please Use matlab and show command window. Please go through allsteps
Using a Dialog button with 3 buttons have the user chose one ofthe 3 anonymous functions below to be used in the later selectedthree Programmed functions (1) Integral by Trapezoidal Method,(2)Integral by Simpson Method, or (3) Root by BiSection Method.:
a. f(x) = 2*x^5 -3*x^2 – 5
b. f(x) = x^2 – 5
c. f(x) = x^(1/2)
2. Using an input statement ask the user to pick Midpoint,Simpson, or ROOT. Make sure you are consistent with string ornumber. You can use what you are comfortable with. The inputvariable will then be used in a switch case statement. Each casewill do the following
a. First case (Midpoint Integral) i. Ask for the three inputs a,b, and n ii. Call the function iii. Use fprintf to output theanswer
b. Second case (Simpson Integral) i. Ask for the three inputs a,b, and n ii. Call the function iii. Use fprintf to output theanswer
c. Third case (ROOTs) i. Ask for the three inputs a, b, andepsilon the convergence limit ii. Call the function iii. Usefprintf to output the answer