Docsity

General Spline Function-Numerical Analysis-Project Code, Study Guides, Projects, Research of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
% Curve 1:
n = 9;
x = [1 2 5 6 7 8 10 13 17];
a = [3.0 3.7 3.9 4.2 5.7 6.6 7.1 6.7 4.5];
% Again Using generate_spline function:
s1 = generate_spline(n,x,a);
plot(s1), title('curve 1')
% Curve 2:
n = 7;
x = [17 20 23 24 25 27 27.7];
a = [4.5 7.0 6.1 5.6 5.8 5.2 4.1];
% Again Using generate_spline function:
s2 = generate_spline(n,x,a);
figure, plot(s2), title('curve 2')
% Curve 3:
n = 4;
x = [27.7 28 29 30];
a = [4.1 4.3 4.1 3];
% Again Using generate_spline function:
s3 = generate_spline(n,x,a);
figure, plot(s3), title('curve 3')
% Concatenating the three curves:
s = [s1 s2 s3];
figure, plot(s), title('Upper portion of the Nobel Beast')
docsity.com

Partial preview of the text

Download General Spline Function-Numerical Analysis-Project Code and more Study Guides, Projects, Research Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

% Curve 1: n = 9; x = [1 2 5 6 7 8 10 13 17]; a = [3.0 3.7 3.9 4.2 5.7 6.6 7.1 6.7 4.5]; % Again Using generate_spline function: s1 = generate_spline(n,x,a); plot(s1), title('curve 1') % Curve 2: n = 7; x = [17 20 23 24 25 27 27.7]; a = [4.5 7.0 6.1 5.6 5.8 5.2 4.1]; % Again Using generate_spline function: s2 = generate_spline(n,x,a); figure, plot(s2), title('curve 2') % Curve 3: n = 4; x = [27.7 28 29 30]; a = [4.1 4.3 4.1 3]; % Again Using generate_spline function: s3 = generate_spline(n,x,a); figure, plot(s3), title('curve 3') % Concatenating the three curves: s = [s1 s2 s3]; figure, plot(s), title('Upper portion of the Nobel Beast')

docsity.com