function [] = demos_fp()

% NelinSys - a program tool for analysis and synthesis of nonlinear control systems
%            based on MATLAB/Simulink 5.2
%
% (C) 2002-2005, Martin Ondera (eskimo@pobox.sk) (Martin.Ondera@stuba.sk)

% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 2
% of the License, or (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
%
% Please, see the LICENSE.TXT file to read the full license.

v = menu('PHASE PLANE ANALYSIS (demo simulations)',...
   '2nd-Order Autonomous System',...
   '2nd-Order Loop with a Hard Nonlinearity',...
   'Duffing Equation');

if ~isempty(v)
   switch v,
   case 1
      open_system('demo_fp2');
      sim('demo_fp2');
   case 2
      open_system('demo_typnl');
      sim('demo_typnl');
   case 3
      open_system('demo_duffing');
      sim('demo_duffing');
   end
end