File: nyquist.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (69 lines) | stat: -rw-r--r-- 2,424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
nyquist           Scilab Group           Scilab Function            nyquist
NAME
   nyquist - nyquist plot
  
CALLING SEQUENCE
 nyquist( sl,[fmin,fmax] [,step] [,comments] )
 nyquist( sl, frq [,comments] )
 nyquist(frq,db,phi [,comments])
 nyquist(frq, repf  [,comments])
PARAMETERS
 sl         : syslin list (SIMO linear system in continuous or discrete
            time )
            
 fmin,fmax  : real scalars (frequency bounds (in Hz))
            
 step       : real (logarithmic discretization step)
            
 comments   : string vector (captions).
            
 frq        : vector or matrix of frequencies (in Hz) (one row for each
            output of sl).
            
 db,phi     : real matrices of modulus (in Db) and phases (in degree) (one
            row for each output of sl).
            
 repf       : matrix of complex numbers. Frequency response (one row for
            aech output of sl)
            
DESCRIPTION
   Nyquist plot i.e Imaginary part versus Real part of the frequency
  response of sl. 
  
   For continous time systems sl(2*%i*%pi*w) is plotted. For discrete time
  system or discretized systems sl(exp(2*%i*%pi*w*fd)  is used ( fd=1 for
  discrete time systems and fd=sl('dt') for discretized systems )   sl can
  be a continuous-time or discrete-time SIMO system (see syslin). In case
  of multi-output the outputs are plotted with different symbols.
  
   The frequencies are given by the bounds fmin,fmax (in Hz) or by a
  row-vector (or a matrix for multi-output) frq.
  
   step is the ( logarithmic ) discretization step. (see calfrq for the
  choice of default value).
  
   comments is a vector of character strings (captions).
  
   db,phi are the matrices of modulus (in Db) and phases (in degrees).  (One
  row for each response).
  
   repf is a matrix of complex numbers. One row for each response.
  
   Default values for fmin and fmax are 1.d-3, 1.d+3 if sl is
  continuous-time or 1.d-3, 0.5 if sl is discrete-time.
  
   Automatic discretization of frequencies is made by calfrq.
  
EXAMPLE
 xbasc();
 s=poly(0,'s');
 h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01));
 comm='(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)';
 nyquist(h,0.01,100,comm);
 h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
 xbasc();
 nyquist([h1;h],0.01,100,['h1';'h'])
 xbasc();nyquist([h1;h])
SEE ALSO
   bode, black, calfrq, freq, repfreq, phasemag