Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
clc
x=-10:0.01:10;
y=sin(x);
plot(x,y)
grid
plot(x,y)
grid
subplot(2,2,1)
plot(x,y)
grid
subplot(2,2,2)
plot(x,z)
grid
subplot(2,2,3)
plot(x,w)
grid
subplot(2,2,4)
plot(x,m)
grid
clc
syms s t w x y a
f=t*sin(3*t);
g=laplace(f);
pretty(g)
%Ejemplo 1
% 2y''+8y' = 4*exp(-3 t)-8 con y(0)= 0 , y'(0)= -1 [18 oct]
clc
syms s t w x y
F=(-s.^2-5*s-12)./((s.^2)*(s+4)*(s+3))
G=ilaplace (F)
pretty(G)
%Ejemplo 2
% 4y'+12y = 4*exp(-6 t) con y(0)= 0 [10 oct]
clc
syms s t w x y
F=(4)./((s+6)*(4*s+12))
G=ilaplace (F)
pretty(G)
%Ejemplo 3
% 3y'+9y = 4+2t con y(0)= -2 [10 oct]
clc
syms s t w x y
F=(-6*s.^2+4*s+2)./((s.^2)*(3*s+9))
G=ilaplace (F)
pretty(G)
%Ejemplo 4
% 2y'+4y = 12*sen(4 t) +4 con y(0)= 0 [12 oct]
clc
syms s t w x y
F=(4*s.^2+48*s+64)./((s)*(s.^2+16)*(2*s+4))
G=ilaplace (F)
pretty(G)
%Ejemplo 5
% 2y''+14y'+20y = 12t-4 con y(0)= 0 y'(0)= 0 [13 oct]
clc
syms s t w x y
F=(6-2*s)./((s.^2)*(s+2)*(s+5))
G=ilaplace (F)
pretty(G)
%Ejemplo 6
% 3y''+6y' = 4*exp(-2t)+4 con y(0)= 0, y'(0)= 2 [16 oct]
clc
syms s t w x y
F=(2*s.^2+(20/3)*s+(8/3))./((s.^2)*((s+2).^2))
G=ilaplace(F)
pretty(G)
Ecuacion diferencial.
clc
g=dsolve('D2y+7*Dy+10*y=sin(t)','y(0)=0','Dy(0)=0','t')
pretty(g)
%Ejemplo 3
clc
t=0:0.05:20;
g=dsolve('2*D2y+8*Dy=4*sin(3*t)+3*cos(t)','y(0)=0','Dy(0)=-1','t');
pretty(g)
g=eval(vectorize(g));
plot(t,g)
grid
Bode.
clc
F=(3*s+2)./((s.^2)*(s+2)*(s+5))
num=[3 2];
den=[4 7 1000];
sol=tf(num,den)
raices=pole(sol)
step(sol)
grid
ilaplace(F)