FITTING A QUADRATIC PARABOLA 8-11 Fit a parabola (7) to the points (x, y). Using MATLAB...
FITTING A STRAIGHT LINE 1-6 Fit a straight line to the given points (x, y) by least squares. Using MATLAB 5. Average speed. Estimate the average speed vav of a car traveling according to s v - t [km] (s = distance traveled, [hr]time) from (t, s)= (9,140), (10,220) (11, 310), (12, 410).
FITTING A STRAIGHT LINE 1-6 Fit a straight line to the given points (x, y) by least squares. Using MATLAB 5. Average speed. Estimate the average speed...
6. (20) Consider the table X 02 3 y = f(x) 7 11 -4 (a) Fit the given data with a quadratic spline. (b) Find an approximate value of f(3) using the first-degree spline. 6. (20) Consider the table X 0 | 2 | y = f(x) | 7 11 | 3 5 (a) Fit the given data with a quadratic spline. YE (b) Find an approximate value of f (3) using the first-degree spline.
8. (16 points) Suppose you use a quadratic curve y = ax? +b to fit the three (x,y) points (1,3), (0,-1), (-1,1). Use matrix method as described in class to find the least squares estimate of the constants a and b in the above equation. In particular, formulate the relevant normal equation, whose solution leads to the least squares estimates of a and b, and hence obtain the least squares estimate of a and b.
Given the data points (xi , yi), with
xi 0 1.2 2.3 3.5 4
yi 3.5 1.3 -0.7 0.5 2.7
find and plot (using MATLAB) the least-squares basis functions
and the resulting least-squares fitting functions together with the
given data points for the case of
a) a linear monomial basis p(x)= {1 x}T .
b) a quadratic monomial basis p(x)= {1 x
x2}T .
c) a trigonometric basis p(x)= {1 cosx sinx}T
Moreover, determine the coefficients a by the Moore-Penrose...
How
to answer using MATLAB codes?
7. f(x) = Vx(x2 + 1), find f'(x) and f'"(x). Simplify your final answers. (10pts) 8. y' = sec? x + 3y tan x, solve the differential equation. (10pts) 9. Find the laplace transform of g(s) = 1/V5.(2pts)
use
matlab
6. You have a x-y relationship as follows 1 2 3 4 5 6 7 8 10 X 17.52 22.76 24.22 36.83 37.65 51.32 68.35 74.59 4.382 1.787 7.757 3nd order polynomial to curve-fit this relationship, i.e. We want to use a yaaxax +a^x (8) (a) Determine the coefficients of the polynomial by solving the following equation a (9) y's az a, (b) Determine the coefficients of the polynomial by using function polyfit (c) Make a plot showing...
Please write the codes in
MATLAB.
HW8_4 Fit the data in the table using linear regression. Plot the data points as well as the regression line. Determine the value of y whenx = 7.2 and print it to the screen using fprintf Then repeat the process, regressing in the opposite way (x vs y) to find the equation of the line needed to determine the value of x when y is 15 Optional brain food: Do you get the same...
PolynomialFit Video Tutorial for this problem -- 7 min Please read through example 11.10.3 Polynomial Fit and study its solution. Now solve for the 3rd order polynomial coefficients (a0 through a3), when given row vectors x and y of length 4 for the x and y values of the four points that the polynomial must include. Finish the polynomialFit function below. Function Save C Reset DI MATLAB Documentation 4 1 function a = polynomialFit(x,y) % fit the 4 points in...
1) Using Matlab, find all real and complex roots of the following polynomial equation: (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8 2) Using Matlab, find the root for the following system of equations. Both x and y are positive. a: (x^2)cos(y)=1 b: e^(-4x)+1
Using Matlab.
The following calibration data are from a hot wire anemometer (HWA) velocity measurement system for air flow: Air Velocity, V (m/s) HWA Output Voltage (E) 0.0 1.100 1. 1.1 1.362 2. 1.431 1.5 3. 1.487 2.0 4. 1.535 2.5 5. 1.576 6 3.0 1.647 4.0 7. 1.706 8. 5.0 1.780 9. 6.5 1.841 10. 8.0 1.910 10 11. 1.983 12. 13 13. 16 2.072 14. 20 2.159 15. 25 2.257 16. 32 2.379 17. 40 2.500 1. Perform...