~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/control/control.dem

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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=x_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