Creation: sys = tf(num,den) creates a continuous-time transfer function sys with
Download 18.44 Kb.
|
15s-20att Tag\'aymurodov Sherzod Funksiya
>> help tf TF Creation of transfer functions or conversion to transfer function.
>> which ('tf') C:\MATLAB6p1\toolbox\control\control\@tf\tf.m % tf method >> n=[2.9 3.19 ] >> which ('tf') C:\MATLAB6p1\toolbox\control\control\@tf\tf.m % tf method >> [0.87 3.19 2.9] ans =
0.8700 3.1900 2.9000 >> which ('tf') C:\MATLAB6p1\toolbox\control\control\@tf\tf.m % tf method >> n=[2.9 3.19 0.87] n =
2.9000 3.1900 0.8700 >> d=[0.7 0.35 0.05] d = 0.7000 0.3500 0.0500 >> f=tf( n,'v') [ 's' | 'p' | 'z' | 'z^-1' | 'q' ] Transfer function from input 1 to output: 2.9 Transfer function from input 2 to output: 3.19 Transfer function from input 3 to output: 0.87 >> z=zero(f) z =
Empty matrix: 0-by-1 >> p=pole(f) p = Empty matrix: 0-by-1 >> k=dcgain(f) k =
2.9000 3.1900 0.8700 >> b=bandwidth(f) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> b=bandwidth( f ) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> b=bandwidth( f ) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> b=bandwidtch( f ) ??? Undefined function or variable 'bandwidtch'. >> b=bandwidth( f ) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> b=bandwidtch(f) ??? Undefined function or variable 'bandwidtch'. >> b=bandwidth(f) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> b=bandwidth(f) ??? Error using ==> lti/bandwidth BANDWIDTH is only applicable to SISO models. >> f=tf(n,d) Transfer function: 2.9 s^2 + 3.19 s + 0.87 ----------------------- 0.7 s^2 + 0.35 s + 0.05 >> b=bandwidth(f) b =
0.2391 >> f_ss=ss(f) a = x1 x2 x1 -0.5 -0.1429 x2 0.5 0 b = u1 x1 2 x2 0 c = x1 x2 y1 1.243 0.9469 d = u1 y1 4.143 Continuous-time model. >> f_ss.d=1 a = x1 x2 x1 -0.5 -0.1429 x2 0.5 0 b = u1 x1 2 x2 0 c = x1 x2 y1 1.243 0.9469 d = u1 y1 1 Continuous-time model. >> k1=dcgain(f_ss) k1 =
14.2571 >>
Zero/pole/gain: 4.1429 (s+0.6) (s+0.5) ---------------------- (s^2 + 0.5s + 0.07143) >> who Your variables are: ans b d f f_ss f_zp k k1 n p z >> pzmap(f) >> >> pzmap(f) >> d=[1 0.7 0.35 0.05] d =
1.0000 0.7000 0.3500 0.0500 >> f=tf(n,d) Transfer function: 2.9 s^2 + 3.19 s + 0.87 ----------------------------- s^3 + 0.7 s^2 + 0.35 s + 0.05 >> b=bandwidth(f) b =
0.4808 >> pzmap(f) >> [wc,ksi,p]=damp(f) wc =
0.2000 0.5000 0.5000 ksi =
1.0000 0.5000 0.5000 p =
-0.2000 -0.2500 + 0.4330i -0.2500 - 0.4330i >> Ltiview >> >> Ltiview >> Ltiview >> print -dmeta >> w=logspace(-1,2,100); >> r=freqresp(f,w); >> semilogx(w,abs(r)) ??? Error using ==> semilogx Data may not have more than 2 dimensions. >> semilogx(w,abs(r)) ??? Error using ==> semilogx Data may not have more than 2 dimensions. >> semilogx ??? Error using ==> semilogx Not enough input arguments. >> r=freqresp(f,w); r=r(:); >> semilogx(w,abs(r)) >> pront -dmeta ??? Undefined function or variable 'pront'. >> print -dmeta >> {u,t]=gensig ('square', 4); ??? {u,t]=gensig ('square', 4); | Error: "}" expected, "]" found. >> [u,t]=gensig ('square', 4); >> lsim(f,u,t) >> print -dmeta Download 18.44 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling