Beruflich Dokumente
Kultur Dokumente
n1 =
1 0
>> d1=[1 1]
d1 =
1 1
>> G1=tf(n1,d1)
G1 =
-----
s+1
>> n2=1
n2 =
>> d2=[1 1 2]
d2 =
1 1 2
>> G2=tf(n2,d2)
G2 =
-----------
s^2 + s + 2
>>
>> G3=series(G1,G2)
G3 =
---------------------
s^3 + 2 s^2 + 3 s + 2
v2 --->| |
+------+ | M2 |-----> y2
| |------->| |
| M1 |
| |---> z1
+------+
M(:,:,k) = series(M1(:,:,k),M2(:,:,k),OUTPUTS1,INPUTS2) .
SYS = series(SYS1,SYS2,'name')
connects SYS1 and SYS2 by matching their I/O names. The output names
>> help tf
Construction:
NUM,DEN are numeric arrays, of type GENSS when NUM,DEN depend on tunable
parameters (see REALP and GENMAT), and of type USS when NUM,DEN are
or Z, for example,
s = tf('s'); H = exp(-s)*(s+1)/(s^2+3*s+1)
For example,
Alternatively, you can use the variable 'p' in continuous time and the
"Variable" property.
Data format:
For SISO models, NUM and DEN are row vectors listing the numerator
For MIMO models with NY outputs and NU inputs, NUM and DEN are
[ -5 /(s-1) ]
[ (s^2-5s+6)/(s^2+s) ]
for NUM and DEN above. For example, if NUM and DEN are cell arrays
of size [NY NU 3 4], then
SYS = tf(NUM,DEN)
Conversion:
SYS = tf(SYS) converts any dynamic system SYS to the transfer function
See also tf/exp, filt, tfdata, zpk, ss, frd, genss, uss, DynamicSystem.
>> G4=parallel(G1,G2)
G4 =
s^3 + s^2 + 3 s + 1
---------------------
s^3 + 2 s^2 + 3 s + 2
G5 =
s^3 + s^2 + 2 s
---------------------
s^3 + 2 s^2 + 4 s + 2
>> G14=feedback(G1,G2,+1)
G14 =
s^3 + s^2 + 2 s
---------------------
s^3 + 2 s^2 + 2 s + 2
>> G15=feedback(G1,G2,-1)
G15 =
s^3 + s^2 + 2 s
---------------------
s^3 + 2 s^2 + 4 s + 2