This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Rather than using the pchip method of ﬁnding the slopes, compute the slope d k as the arithmetic mean (average) of δ k-1 and δ k . Do this even where the δ ’s diﬀer in sign. For the endpoints, use d 1 = δ 1 and d n = δ n-1 . Create some data to interpolate, and compare and contrast the three methods: splinetx , pchiptx , and your new method. Try several data sets, and try to ﬁnd one the points out any ﬂaws in the method you develop. Also use the one I used in class: y = [0 0 0 0 0 1 1 1 1 1] x = 1:10 2...
View Full Document
- Fall '08
- Spline interpolation, Cleve Moler, Thurs Nov