Question: Given the x,y data below and associated graph: % a) fit a quadratic polynomial through the data % b) find the two roots % c)

Given the x,y data below and associated graph:

% a) fit a quadratic polynomial through the data

% b) find the two roots

% c) plot the two roots on the graph (red square,MS20,LW2)

% d) edit the title to include your name

%

fprintf(' 1) polynomial fit and roots ')

%

% given code

x=[-5:0.5:5];

y=4*x.^2-36;

figure,plot(x,y,'k','LineWidth',2),grid on,hold on

xlabel('x'),ylabel('y')

% your code goes here

Please provide matlab code for the question

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!