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

« back to all changes in this revision

Viewing changes to man/control/feedback.cat

  • 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
abcd             Scilab Group             Scilab Function              abcd
 
2
NAME
 
3
   feedback - feedback operation
 
4
  
 
5
CALLING SEQUENCE
 
6
 Sl=Sl1/.Sl2
 
7
PARAMETERS
 
8
 Sl1,Sl2  : linear systems (syslin list) in state-space or transfer form,
 
9
          or ordinary gain matrices.
 
10
          
 
11
 Sl       : linear system (syslin list) in state-space or transfer form
 
12
          
 
13
DESCRIPTION
 
14
   The feedback operation is denoted by  /.  (slashdot). This command
 
15
  returns Sl=Sl1*(I+Sl2*Sl1)^-1, i.e the (negative)  feedback of Sl1 and
 
16
  Sl2. Sl is the transfer  v -> y  for  y = Sl1 u , u = v - Sl2 y.
 
17
  
 
18
   The result is the same as Sl=LFT([0,I;I,-Sl2],Sl1).
 
19
  
 
20
   Caution: do not use with decimal point (e.g. 1/.1 is ambiguous!)
 
21
  
 
22
EXAMPLE
 
23
 S1=ssrand(2,2,3);S2=ssrand(2,2,2);
 
24
 W=S1/.S2;
 
25
 ss2tf(S1/.S2)
 
26
 //Same operation by LFT:
 
27
 ss2tf(lft([zeros(2,2),eye(2,2);eye(2,2),-S2],S1))
 
28
 //Other approach: with constant feedback
 
29
 BigS=sysdiag(S1,S2); F=[zeros(2,2),eye(2,2);-eye(2,2),zeros(2,2)];
 
30
 Bigclosed=BigS/.F;
 
31
 W1=Bigclosed(1:2,1:2);   //W1=W (in state-space).
 
32
 ss2tf(W1)
 
33
 //Inverting
 
34
 ss2tf(S1*inv(eye()+S2*S1))
 
35
SEE ALSO
 
36
   lft, sysdiag, augment, obscont    
 
37