You are on page 1of 2

UNIVERSIDAD TÉCNICA DEL NORTE

FACULTAD DE INGENIERÍA EN CIENCIAS APLICADAS

INGENIERÍA ELÉCTRICA

LABORATORIO ECUACIONES DIFERENCIALES

MONTESDEOCA MONTESDEOCA JOSHUA STEVEN

METODO DE SEPARACIÓN DE VARIABLES

clear, clc, close


y=dsolve('Dy=4*(2*x-6*y)','y(0)=10','x')

Warning: Support of character vectors and strings will be removed in a future release. Use sym objects to
define differential equations instead.
y =

%---------Eje de coordenadas----------%
xy=-10:10;
yx=0.*xy+0;
yy=0.*xy+0;
plot(xy,yx,'--k','linewidth',1)
hold on, grid on, grid minor
plot(yy,xy,'--k','linewidth',1)
axis([-10 10 -10 10])
%---------Eje de coordenadas----------%
x=0:0.1:10;
y=x/3 + (721*exp(-24*x)/72 - 1/72);
plot(x,y,'R','linewidth',2)
solg=dsolve('Dy=4*(2*x-6*y)','x')

Warning: Support of character vectors and strings will be removed in a future release. Use sym objects to
define differential equations instead.
solg =

solp=dsolve('Dy=4*(2*x-6*y)','y(0)=10','x')

Warning: Support of character vectors and strings will be removed in a future release. Use sym objects to
define differential equations instead.
solp =

title('Dy=4*(2*x-6*y)')

1
2

You might also like