HW7 - spline . (c) Use the built-in Matlab function interp1...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem Instructions and changes in problems 15.2 By hand. Choose points that bracket the point where you want to interpolate. 15.3 By hand. 15.5 Use the built in Matlab functions polyfit, polyval, and roots where helpful. Use only four points for the cubic polynomial. 15.7 Use the built in Matlab functions polyfit, polyval, and roots where helpful. Use original data for part (a) and use v = [0.10377 0.1144 0.12547] , s = [6.4147 6.5453 6.7664] for parts (b) and (c). 15.10 Find the unknown coefficients by forming linear systems of equations Ax = b and solving for thecoefficient vector x . Check your coefficient calculations using the built-in Matlab function polyfit , and evaluate the resultingpolynomials at 2.1 using the built-in Matlab function polyval .Note that the Bessel function is first order of the first kind (i.e., J = besselj(1,1.8) ) 16.1 (a) Solve for the cubic spline coefficients for each of the 5 segments by forming a linear system of equations Ax = b and solving for the coefficient vector x . (b) Use the built-in Matlab function
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: spline . (c) Use the built-in Matlab function interp1 with the appropriate method selected. 16.3 Use the built-in Matlab functions spline and interp1 as necessary. 16.5 Use the built-in Matlab functions spline and interp1 asnecessary. Check the Matlab help file on the spline commandto learn how to fit using zero-slope clamped end conditions inpart (b). 16.10 Use the built-in Matlab functions spline. 15.2 First order: 12.5 Second order: 10.5 Third order: 10 Fourth order: 10 15.3 First order: 12.5 Second order: 10.5 Third order: 10 15.5 f (x) = 0.15x 3 +1.5x 2 5.25x + 7.5 x = 2.2156 15.7 (a) 6.6487 (b) 6.6077 (c) 0.1074 15.10 Third order case: J predicted = 0.5683, ea = 8.15783e 4 Fourth order case J predicted = 0.5683, ea = 0.0021 16.1 The polynomial coefficients for the first interval are: 1 3.970954 0 0.029046 (a) (b) (c) 16.2 d = 1.21511 m 16.3 (a) (b) 16.5 (a) (b) (c) 16.10 (a) y (1.5) = 21.3344 (b) y (1.5) = 20.5701...
View Full Document

Page1 / 11

HW7 - spline . (c) Use the built-in Matlab function interp1...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online