Docsity

Generating a Natural Spline using MATLAB for Problem # 1, Study Guides, Projects, Research of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Generating a Natural Spline using MATLAB for Problem # 1 and more Study Guides, Projects, Research Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

% Values from Table: x = [0.9 1.3 1.9 2.1 2.6 3.0 3.9 4.4 4.7 5.0 6.0 7.0 8.0 9.2 10.5 11. 11.6 12.0 12.6 13.0 13.3]; a = [1.3 1.5 1.85 2.1 2.6 2.7 2.4 2.15 2.05 2.1 2.25 2.3 2.25 1.95 1. 0.9 0.7 0.6 0.5 0.4 0.25]; n = 21;

% Function Call: s = generate_spline(n,x,a); plot(s), title('Natural Spline Plot For Problem # 1')

docsity.com