%       ------- OPTIMIZATION TOOLBOX Demonstrations---
%
%       1)  Tutorial Walk Through
%       2)  Banana Function
%       3)  Goal Attainment
%       4)  Data fitting
%
%       0)      Quit
echo off

% Optimization Toolbox Demonstrations.

%   A.C.W.Grace 5-18-89
%   Copyright (c) 1990-98 by The MathWorks, Inc.
%   $Revision: 1.9 $  $Date: 1998/07/23 13:20:34 $


while 1
    demos= ['tutdemo '
        'bandemo '
        'goaldemo'
        'datdemo '];
    clc
    help optdemo
    n = input('Select a demo number: ');
    if ((n <= 0) | (n > 4)) 
        break
    end
    demos = demos(n,:);
    eval(demos)
    clear
 end
 clear n demos
clc
