PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/R2008-08-24/main/odepkg/inst/odeexamples.m

#
MATLAB | 53 lines | 25 code | 4 blank | 24 comment | 5 complexity | 565fa313738c3ff3a6d22666885a4ae7 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, LGPL-2.1, GPL-3.0, LGPL-3.0
  1. %# Copyright (C) 2007-2008, Thomas Treichl <treichl@users.sourceforge.net>
  2. %# OdePkg - A package for solving ordinary differential equations and more
  3. %#
  4. %# This program is free software; you can redistribute it and/or modify
  5. %# it under the terms of the GNU General Public License as published by
  6. %# the Free Software Foundation; either version 2 of the License, or
  7. %# (at your option) any later version.
  8. %#
  9. %# This program is distributed in the hope that it will be useful,
  10. %# but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. %# GNU General Public License for more details.
  13. %#
  14. %# You should have received a copy of the GNU General Public License
  15. %# along with this program; if not, write to the Free Software
  16. %# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. %# -*- texinfo -*-
  18. %# @deftypefn {Function File} {[@var{}] =} odeexamples (@var{})
  19. %# Open the differential equations examples menu and allow the user to select a submenu of ODE, DAE, IDE or DDE examples.
  20. %# @end deftypefn
  21. function [] = odeexamples (varargin)
  22. vfam = 1; while (vfam > 0)
  23. clc;
  24. fprintf (1, ...
  25. ['OdePkg examples main menu:\n', ...
  26. '==========================\n', ...
  27. '\n', ...
  28. ' (1) Open the ODE examples menu\n', ...
  29. ' (2) Open the DAE examples menu\n', ...
  30. ' (3) Open the IDE examples menu\n', ...
  31. ' (4) Open the DDE examples menu\n', ...
  32. '\n']);
  33. vfam = input ('Please choose a number from above or press <Enter> to return: ');
  34. switch (vfam)
  35. case 1
  36. odepkg_examples_ode;
  37. case 2
  38. odepkg_examples_dae;
  39. case 3
  40. odepkg_examples_ide;
  41. case 4
  42. odepkg_examples_dde;
  43. otherwise
  44. %# have nothing to do
  45. end
  46. end
  47. %# Local Variables: ***
  48. %# mode: octave ***
  49. %# End: ***