Professional Documents
Culture Documents
Montesdeoca Joshua Laboratorio MatLab ED
Montesdeoca Joshua Laboratorio MatLab ED
INGENIERÍA ELÉCTRICA
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