Undefined function or variable 'f'


Download 294.23 Kb.
Sana14.05.2023
Hajmi294.23 Kb.
#1461022
Bog'liq
Hamrayev Sohib 35 Матлаб


>> n = [1,4 1,54 0,252]


n =

1 4 1 54 0 252

>> d = [1 1,833 1,5278 0,694]


d =

Columns 1 through 6

1 1 833 1 5278 0


Column 7


694

>> [n1,d1] = tfdata (f,'d' )
??? Undefined function or variable 'f'.

>> [n1,d1]


??? Undefined function or variable 'n1'.

>> z = 0

z =

0


>> f=tf(n,d)
Transfer function:
s^5 + 4 s^4 + s^3 + 54 s^2 + 252
------------------------------------------
s^6 + s^5 + 833 s^4 + s^3 + 5278 s^2 + 694
>> [n1,d1] = tfdata(f,'d')

n1 =

0 1 4 1 54 0 252
d1 =

Columns 1 through 6


1 1 833 1 5278 0


Column 7


694

>> z=zero(f)

z =

-5.7148
1.3476 + 2.4374i
1.3476 - 2.4374i
-0.4902 + 2.3333i
-0.4902 - 2.3333i

>> p=pole(f)


p =

-0.5033 +28.7466i
-0.5033 -28.7466i
0.0033 + 2.4999i
0.0033 - 2.4999i
0.0000 + 0.3665i
0.0000 - 0.3665i

>> k=dcgain(f)


k =

0.3631

>> b=bandwidth(f)


b =

0.5667

>> f_ss=ss(f)


a =
x1 x2 x3 x4 x5 x6
x1 -1 -26.03 -0.003906 -2.577 -0 -0.08472
x2 32 0 0 0 0 0
x3 0 8 0 0 0 0
x4 0 0 8 0 0 0
x5 0 0 0 2 0 0
x6 0 0 0 0 2 0
b =
u1
x1 1
x2 0
x3 0
x4 0
x5 0
x6 0
c =
x1 x2 x3 x4 x5 x6
y1 1 0.125 0.003906 0.02637 0 0.03076
d =
u1
y1 0
Continuous-time model.
>> f_ss.d=1
a =
x1 x2 x3 x4 x5 x6
x1 -1 -26.03 -0.003906 -2.577 -0 -0.08472
x2 32 0 0 0 0 0
x3 0 8 0 0 0 0
x4 0 0 8 0 0 0
x5 0 0 0 2 0 0
x6 0 0 0 0 2 0
b =
u1
x1 1
x2 0
x3 0
x4 0
x5 0
x6 0
c =
x1 x2 x3 x4 x5 x6
y1 1 0.125 0.003906 0.02637 0 0.03076
d =
u1
y1 1
Continuous-time model.
>> k1=dcgain(f_ss)

k1 =

1.3631

>> f_zp=zpk(f)


Zero/pole/gain:
(s+5.715) (s^2 + 0.9804s + 5.685) (s^2 - 2.695s + 7.757)
---------------------------------------------------------------------------
(s^2 - 2.301e-005s + 0.1343) (s^2 - 0.00654s + 6.25) (s^2 + 1.007s + 826.6)
>> pzmap(f)
>> [wc,ksi,p]=damp(f)

wc =

0.3665
0.3665
2.4999
2.4999
28.7510
28.7510
ksi =

-0.0000
-0.0000


-0.0013
-0.0013
0.0175
0.0175
p =

0.0000 + 0.3665i


0.0000 - 0.3665i
0.0033 + 2.4999i
0.0033 - 2.4999i
-0.5033 +28.7466i
-0.5033 -28.7466i

>> [wc,ksi,p]=damp(f)


wc =

0.3665
0.3665
2.4999
2.4999
28.7510
28.7510
ksi =

-0.0000
-0.0000


-0.0013
-0.0013
0.0175
0.0175
p =

0.0000 + 0.3665i


0.0000 - 0.3665i
0.0033 + 2.4999i
0.0033 - 2.4999i
-0.5033 +28.7466i
-0.5033 -28.7466i

>> Ltiview







Download 294.23 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling