Академический Документы
Профессиональный Документы
Культура Документы
matlab (practica)
>> help zpk
Construction:
SYS with zeros Z, poles P, and gains K. SYS is an object of class @zpk.
for example,
z = zpk('z',0.1); H = (z+.1)*(z+.2)/(z^2+.6*z+.09)
For example,
sys = zpk(1,2,3,'Variable','p','DisplayFormat','freq')
help zpk.<PropertyName>
Data format:
For SISO models, Z and P are the vectors of zeros and poles (set
Z=[] when there are no zeros) and K is the scalar gain.
input j to output i
For example,
[ -5 /(s-1) ]
[ (s-2)(s-3)/s(s+1) ]
You can create arrays of zpk models by using ND cell arrays for Z,P
SYS = zpk(Z,P,K)
Conversion:
Overloaded methods:
DynamicSystem/zpk
mfilt.zpk
adaptfilt.zpk
idParametric/zpk
dfilt.zpk
doc zpk
G=
Static gain.
Invalid syntax for the "zpk" command. Type "help zpk" for more information.
G=
Static gain.
>> g
G=
Static gain.
>> clear
G=
Static gain.
G=
Static gain.
G=
10 (s+2)
---------------
s (s+1) (s+3)^2
Continuous-time zero/pole/gain model.
>> pole(G)
ans =
-1
-3
-3
>> zero(G)
ans =
-2
>> Gz=zpk(G)
Gz =
10 (s+2)
---------------
s (s+1) (s+3)^2
>> pzmap(G)
Warning: MATLAB has disabled some advanced graphics rendering features by switching to
software OpenGL. For more
>> Gp=tf(G)
Gp =
10 s + 20
--------------------------
Otros ejemplos
>> help series
series - Series connection of two models
series
sys = series(sys1,sys2)
sys = series(sys1,sys2,outputs1,inputs2)
>> n1=10;
>> n1=[0 0 10];
>> d1=[1 2 10];
>> n2=[0 5];
>> d2=[1 5];
>> s=tf('s');
>> Gl=tf(n1,d1)
Gl =
10
--------------
s^2 + 2 s + 10
>> G2=tf(n2,d2)
G2 =
5
-----
s+5
>> printsys(ni,d1)
Undefined function or variable 'ni'.
>> printsys(n1,d1)
num/den =
10
--------------
s^2 + 2 s + 10
>> printsys(n2,d2)
num/den =
5
-----
s+5
>> [N,D]=series(n1,d1,n2,d2);
>> printsys(N,D)
num/den =
50
-----------------------
s^3 + 7 s^2 + 20 s + 50
>> [Np,Dp]=parallel(n1,d1,n2,d2);
>> printsys(Np,Dp)
num/den =
5 s^2 + 20 s + 100
-----------------------
s^3 + 7 s^2 + 20 s + 50
>> [Nc,Dc]=feedback(n1,d1,n2,d2);
>> printsys(Nc,Dc)
num/den =
10 s + 50
------------------------
s^3 + 7 s^2 + 20 s + 100
>>