Ejercicios en Matlab
Ejercicios en Matlab
Warning: Support of character vectors and strings will be removed in a future release. Use sym objects to
define differential equations instead.
v =
t=0:0.1:12;
z=eval(vectorize(v));
plot(t,z)
1
2.-Ejercicio de segundo Orden
i_L=dsolve('D2I_L+9*DI_L+50*I_L=144','I_L(0)=1','DI_L(0)=0.5')
Warning: Support of character vectors and strings will be removed in a future release. Use sym objects to
define differential equations instead.
i_L =
2
3.- TRASFORMADA DE LAPLACE
syms t
V_c=laplace(10*t)
V_c =
V_b= laplace(10*exp(-4*t))
V_b =
F =
s^2 + 4 s + 1
-------------------
s^3 + 2 s^2 + s + 4
3
Continuous-time transfer function.
Model Properties
[p,k,r]=residue(N,D)
p = 3×1 complex
-0.3713 + 0.0000i
0.6856 - 0.3543i
0.6856 + 0.3543i
k = 3×1 complex
-2.3146 + 0.0000i
0.1573 + 1.3052i
0.1573 - 1.3052i
r =
[]
ans =
i_(t)=ilaplace(1/(t+2))
i_(t) =
Raices = 3×1
-4.7321
-4.0000
-1.2679
P=[0 4 5 6];
Q=[10 2 3 5];
Tv=tf(P,Q)
Tv =
4 s^2 + 5 s + 6
------------------------
10 s^3 + 2 s^2 + 3 s + 5
pzmap(Tv)
4
bode(Tv)