More Related Content
Similar to Matlab tutorial2
Similar to Matlab tutorial2 (20)
Matlab tutorial2
- 1. CódigoMatlab
[A,B,C,D,Xo,in,out]=power_analyze('RCL')
[num,den]=ss2tf(A,B,C,D)
G=tf(num,den)
step(G)
impulse(G)
t=[0:0.1:10]
b=sawtooth(t,0.5)
plot(t,b)
A =
1.0e+04 *
-0.3740 -0.0027
1.6471 -0.0392
B =
27.1795
0
C =
0 1
Continuous
powergui
v+
-
Vc Scope
AC Voltage Source
+
77 ohms
+
53Ohms
+
42 Ohms
+
25uF
+
15 mH
+
10 Ohms
- 2. D =
0
Xo =
0.0492
-21.4168
in=
'Il_15 mH'
'Uc_25uF'
out =
'U_AC Voltage Source'
num=
1.0e+05 *
0 0 4.4766
den=
1.0e+06 *
0.0000 0.0041 1.9188
G =
4.477e05
-----------------------
s^2 + 4132 s + 1.919e06
Continuous-timetransferfunction.