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

« back to all changes in this revision

Viewing changes to man/control/freq.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
FREQ             Scilab Group             Scilab Function              FREQ
 
2
NAME
 
3
   freq - frequency response
 
4
  
 
5
CALLING SEQUENCE
 
6
 [x]=freq(A,B,C [,D],f)
 
7
 [x]=freq(NUM,DEN,f)
 
8
PARAMETERS
 
9
 A, B, C, D      :  real matrices of respective dimensions nxn, nxp, mxn,
 
10
                 mxp.
 
11
                 
 
12
 NUM,DEN         : polynomial matrices of dimension mxp
 
13
                 
 
14
 x               : real or complex matrix
 
15
                 
 
16
DESCRIPTION
 
17
   x=freq(A,B,C [,D],f) returns a real or complex mxp*t matrix such that:
 
18
  
 
19
   x(:,k*p:(k+1)*p)= C*inv(f(k)*eye()-A)*B + D.
 
20
  
 
21
   Thus, for f taking values along the imaginary axis or on the unit circle
 
22
  x is the continuous or discrete time  frequency response of (A,B,C,D).  
 
23
  
 
24
   x=freq(NUM,DEN,f) returns a real or complex matrix x such that columns
 
25
  k*(p-1)+1 to k*p of x contain the matrix   NUM(f(k))./DEN(f(k))
 
26
  
 
27
EXAMPLE
 
28
 s=poly(0,'s');
 
29
 sys=(s+1)/(s^3-5*s+4)
 
30
 rep=freq(sys("num"),sys("den"),[0,0.9,1.1,2,3,10,20])
 
31
 [horner(sys,0),horner(sys,20)]
 
32
 //
 
33
 Sys=tf2ss(sys);
 
34
 [A,B,C,D]=abcd(Sys);
 
35
 freq(A,B,C,[0,0.9,1.1,2,3,10,20])
 
36
SEE ALSO
 
37
   repfreq, horner 
 
38