Question: Using Matlab only , answer E through G. 4. The polynomial y is defined as yx3 50 x2 +x +6x4 +15 In a script file

Using Matlab only , answer E through G.  Using Matlab only , answer E through G. 4. The polynomial

4. The polynomial y is defined as yx3 50 x2 +x +6x4 +15 In a script file named initialsHK04 pb 04 . m, do the following - - a. write an anonymous function that evaluate the polynomial when x value is given (Do NOT use polyval command here) b. Call the anonymous function to find the values of y over the interval-3 sx s3 with a y-e ( step of 0.5 c. Use xlswrite to save the variable yvalue 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_04.xlsx in a sheet called Problem 04 starting at cell C3. to both axes. fplot (y,. x01-fzero (y, ...) x02- f. Use fminbnd to find the 2 minimum values of the anonymous function between x- -3 and x 0 and between x0 andx3. Find the value of both x and y when the function is minimum xmini,ymin1]-fminbnd .(... xmin2, ymin2]- g. Repeat part f using fminsearch and initial values of x as -2 and 2 xminl,ymini]-fminsearch

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!