home *** CD-ROM | disk | FTP | other *** search
- % SPDEMOS List of spline toolbox demonstrations.
- %
- % 1) piecewise polynomials, form and usage
- % 2) splines, form and usage
- % 3) some B-splines
- % 4) cubic spline interpolation
- % 5) cubic smoothing spline
- % 6) spline interpolation
- % 7) spline curves
- % 8) a simple nonlinear ordinary differential equation
- % 9) construction of the Chebyshev spline
- % 10) bivariate approximation by tensor products
- %
- % 0) quit
-
- % adapted from JNL's demos.m file for MATLAB by
- % C. de Boor/ latest change: December 25, 89
- % C. de Boor/ latest change: February 20, 91 (add 9)
- % C. de Boor/ latest change: 6 February 92 (insert 3)
- % Copyright (c) 1990-92 by Carl de Boor and The MathWorks, Inc.
-
- echo off
- clear
- while 1
- demos= ['ppalldem'
- 'spalldem'
- 'bsplidem'
- 'csapidem'
- 'csapsdem'
- 'spapidem'
- 'spcrvdem'
- 'difeqdem'
- 'chebdem '
- 'tspdem '];
- clc
- help spdemos
- n = input('Select a demo number: ');
- if ( (n <= 0) | (n > length(demos)) )
- break
- end
- demos = demos(n,:);
- eval(demos)
- clear
- end
- clc
-