Question: Using Matlab only, answer B and C Expert Q&A Done Using Matlab only, answer A through D 4. The polynomial y is defined as y-50x2+x+6r
Expert Q&A Done Using Matlab only, answer A through D 4. The polynomial y is defined as y-50x2+x+6r +15 in a script file named Initiais HK 04.Jb04 do the following a. write an anonymous function that evaluate the polynomial when value is given. y-e DO NOT use polyval command herel b. Call the anonymous function to find the values of y over the interval-3sx S 3 with a step of 05 c Use xlevrite to save the variable y value to an Excel file with the name d. Use fplot to plot the anonymous function over the given interval. Add a grid and labels e. Use fzero to find the zeros of the anonymous function near x =-3,-1. 1 & 3. y value- Initials HW 04 Pb 04xsx in a sheet called Problem 04 starting at cellC to both axes. Eplot (y x02 f. Use fminbnd to find the 2 minimum values of the anonymous function between x -3 and xm 0 and between x-0and x. 3 Find the value of both x and y when the function is minimum. Repeat part f using fminsearch and initial values of x as-2 and 2 [xmin1, ymin1 ]afminsearch &
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
