Documentos de Académico
Documentos de Profesional
Documentos de Cultura
22/02/16 07:49 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=0: (2*pi)/100:2*pi;
y=sin(t);
plot(t,y)
title('grafica del seno de t')
xlabel('tiempo')
ylabel('f(t)')
grid
22/02/16 07:48 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=0: (2*pi)/5:2*pi;
y=sin(t);
plot(t,y)
title('grafica del seno de t')
xlabel('tiempo')
ylabel('f(t)')
grid
IV DESARROLLO PRCTICA
CODIGO FUENTE DE LA GRAFICA DEL
COSENO
22/02/16 07:57 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=0: (2*pi)/100:2*pi;
y=cos(t);
plot(t,y)
title('grafica del coseno')
xlabel('tiempo')
ylabel('f(t)')
grid
22/02/16 07:59 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=0: (2*pi)/10:2*pi;
y=cos(t);
plot(t,y)
title('grafica del coseno')
xlabel('tiempo')
ylabel('f(t)')
grid
IV DESARROLLO PRCTICA
CODIGO FUENTE DE LA GRAFICA DE
NUMEROS COMPLEJOS
22/02/16 07:54 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=0: (2*pi)/100:2*pi;
y=exp(i*t);
plot(t,real(y),t,imag(y))
title('grafica de una funcion
exponencial completa')
xlabel('tiempo')
ylabel('f(t)')
grid
t=1:(2*pi)/5:2*pi;
y=exp(i*t);
plot(t,real(y),t,imag(y))
title('grafica de una funcion
exponencial completa')
xlabel('tiempo')
ylabel('f(t)')
grid
IV DESARROLLO PRCTICA
CODIGO FUENTE DE UNA FUNCION
TRIANGULAR
22/02/16 08:03 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
22/02/16 08:06 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=[10 pi 2*pi]; %se define el
eje horizontal
x=[5 40 0];% se define el
eje vertical
plot(t,x)
title('grafica de una funcion
triangular')
xlabel('tiempo')
ylabel('f(t)')
grid
IV DESARROLLO PRCTICA
CODIGO FUENTE DE UNA FUNCION
RECTANGULAR
22/02/16 08:13 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
22/02/16 08:21 PM
E:\PRACTICA 1 COD ORI.m 1 of 1
t=[-8 -8 0 0 8 8 ]; %se define el eje
horizontal
x=[0 -5 -5 5 2 0]; % se define el eje
vertical
plot(t,x)
title('grafica de una funcion
rectangular')
xlabel('tiempo')
ylabel('f(t)')
grid
axis ([-20 20 -10 10])