Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Determine the equations of the polynomials whose graphs pass through the given points. Plot each polynomial and mark the given data points (see provided
1. Determine the equations of the polynomials whose graphs pass through the given points. Plot each polynomial and mark the given data points (see provided Matlab code at bottom of assignment). (a) (1,2),(1,4),(2,13) (b) (1,9),(0,4),(1,9) (c) (2,1),(1,1),(0,3),(1,1) Matlab code for plotting fitted polynomial: figure(1); hold on x0=[1,0,1];%-values of given data y0=[4,2,2];%-values of given data x=3:.1:3; \%an evenly spaced vector of x-values that covers all given data points y=x2x+2; \%the polynomial that passes through the points. Evaluated at many x-values plot (x,y); \%The two vectors have to have same dimensions plot(x_0, y_0, 'ro', 'MarkerSize', 12) \% Plot given data point(s) on the curve ax= gca; ax.FontSize =14; title('Fitted Polynomial') xlabel('x') ylabel('y') legend ('Polynomial', 'Given points')
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started