Page 1 of 1

Use Matlab

Posted: Sat Nov 27, 2021 2:32 pm
by answerhappygod
Use Matlab
Use Matlab 1
Use Matlab 1 (261.8 KiB) Viewed 79 times
26. The following points are given: 1 2.2 3.7 6.4 9 11.5 14.2 17.8 20.5 23.2 y 12 9 6.6 5.5 7.2 9.2 9.6 8.5 6.5 2.2 (a) Fit the data with a first-order polynomial. Make a plot of the points and the polynomial. (b) Fit the data with a second-order polynomial. Make a plot of the points and the polynomial. (C) Fit the data with a third-order polynomial. Make a plot of the points and the polynomial. (d) Fit the data with an fifth-order polynomial. Make a plot of the points and the polynomial. 28. Write a user-defined function that determines the best fit of an exponential function of the form of the form y = be". Name the function [b,m] = expofit(x,y), where the input arguments x and y are vectors with the coordinates of the data points, and the output arguments b and m are the constants of the fitted exponential equation. Use expofit to fit the data below. Make a plot that shows the data points and the function. 0.4 2.2 3.1 5.0 6.6 7.6 y 1.7 10.1 26.9 61.2 158 398