~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to demos/control/scheme.dem

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
x=[5,10,20,40,50,70,80,90];
 
2
// Copyright INRIA
 
3
y=[22,28,30,32];xmin=-10;xmax=100;ymin=12;ymax=40;
 
4
xx=[xmin,xmin,x(1),x(2),x(2),x(7),x(4),x(6),x(3),x(4),x(5),x(6),x(3),x(3),x(5),x(5);
 
5
  xmax,xmax,x(3),x(2),x(7),x(7),x(5),90,x(3),x(4),x(5),x(6),x(4),x(4),x(6),x(6)];
 
6
yy=[ymin,ymax,y(3),y(1),y(1),y(1),y(3),y(3),y(2),y(2),y(2),y(2),y(2),y(4),y(2),y(4);ymin,ymax,y(3),y(3),y(1),y(3),y(3),y(3),y(4),y(4),y(4),y(4),y(2),y(4),y(2),y(4)];
 
7
xbasc(0);xset("window",0);xselect();
 
8
plot2d(xx,yy,ones(1,16),'022');xstring(28,30,'K');xstring(56,30,'Plant')
 
9
xstring(12,28.80,'-');
 
10
xtitle('PLANT   and   CONTROLLER')
 
11
xend()