Professional Documents
Culture Documents
Tarea Previa 1
Tarea Previa 1
t=0:(2*pi)/500:1;
y=sin(8*pi*t);
plot(t,y)
title('grafica del seno de t')
xlabel('tiempo')
ylabel('f(t)')
grid
t=0:.0001:1;
y=sin(28*pi*t);
plot(t,y)
title('grafica del seno de t')
xlabel('tiempo')
ylabel('f(t)')
grid
t=0:.0001:1;
y=cos(4*pi*t);
plot(t,y)
title('grafica del coseno de t')
xlabel('tiempo')
ylabel('f(t)')
grid
t=0:(2*pi)/1000:1;
y=exp(i*10*pi*t);
plot(t,real(y),t,imag(y))
title('Grafica de una funcion
exponencial compleja')
xlabel('tiempo')
ylabel('f(t)')
grid
t=[ 0 3 3 3 6 6];
x=[ -2 -2 0 2 2 0];
plot(t,x)
title('grafica de una funcion
rectangular ')
xlabel('tiempo')
ylabel('f(t)')
grid
axis([-1 7 -3 3])
t=[0 2 4];
x=[0 3 0];
plot(t,x)
title('grafica de una onda triangular')
xlabel('tiempo')
ylabel('f(t)')
grid