www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SplineInterpolationOfSineDataExample.m
%% Spline Interpolation of Sine Data % This generates a sine curve, then samples the spline over a finer mesh. % Copyright 2015 The MathWorks, Inc. x = 0:10; y = sin(x); xx = 0:.25:10; yy = spline(x,y,xx); plot(x,y,'o',xx,yy)