home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 5.ddi / SPLINES.DI$ / SPDEMOS.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  1.3 KB  |  46 lines

  1. % SPDEMOS    List of spline toolbox demonstrations.
  2. %
  3. %               1) piecewise polynomials, form and usage
  4. %               2) splines, form and usage
  5. %               3) some B-splines
  6. %               4) cubic spline interpolation
  7. %               5) cubic smoothing spline
  8. %               6) spline interpolation
  9. %               7) spline curves
  10. %               8) a simple nonlinear ordinary differential equation
  11. %               9) construction of the Chebyshev spline
  12. %              10) bivariate approximation by tensor products
  13. %
  14. %               0) quit
  15.  
  16. %  adapted from JNL's demos.m file for MATLAB by
  17. %  C. de Boor/ latest change: December 25, 89
  18. %  C. de Boor/ latest change: February 20, 91 (add 9)
  19. %  C. de Boor/ latest change:  6 February  92 (insert 3)
  20. % Copyright (c) 1990-92 by Carl de Boor and The MathWorks, Inc.
  21.  
  22. echo off
  23. clear
  24. while 1
  25.     demos= ['ppalldem'
  26.             'spalldem'
  27.             'bsplidem'
  28.             'csapidem'
  29.             'csapsdem'
  30.             'spapidem'
  31.             'spcrvdem'
  32.             'difeqdem'
  33.             'chebdem '
  34.             'tspdem  '];
  35.     clc
  36.     help spdemos
  37.     n = input('Select a demo number: ');
  38.     if ( (n <= 0) | (n > length(demos)) )
  39.         break
  40.     end
  41.     demos = demos(n,:);
  42.     eval(demos)
  43.     clear
  44. end
  45. clc
  46.