Reorganization
[scilab.git] / scilab / modules / cacsd / demos / control.dem
1 mode(-1)
2 path=get_absolute_file_path('control.dem');
3 oldln=lines();lines(0)
4
5 demolist=['LQG',               'lqg/lqg.dem'
6           'Mixed-sensitivity', 'mixed.dem'
7           'PID'                'pid.dem'
8           'Inverted pendulum', 'pendulum/pendule.dem'
9           'Flat systems',      'flat/flat.dem'
10           'Tracking',          'tracking/track.dem'
11           'Robust control',    'robust/rob.dem']
12
13 deff('[]=demoex(num)','exec(path+demolist(num,2),-1)')
14
15 while %t then
16   num=tk_choose(demolist(:,1),'Choose a demo');
17   if num==0 then 
18      lines(oldln(1))
19      return
20   else
21      demoex(num)
22   end,
23 end
24
25