Académique Documents
Professionnel Documents
Culture Documents
Laboratorio N° 2
CÓDIGO:
f=10.^6;
p=1/f;
a=10.^-3;
t=(-0.5*10.^-6:0.00000001:4.5*10.^-6);
coseno=a*cos(2*pi*f*t)+10.^-3;
unitstepl=t>=0
j=t<=4*10.^-6;
h=coseno.*unitstepl.*j;
plot(t,h);
xlabel('Tiempo (s)');
ylabel('Amplitud (v)');
title('S0(t)');
SIMULACIÓN:
CÓDIGO:
f=2*10.^6;
p=1/f;
t=(0:0.00000001:4*10.^-6);
q=(3.*(10.^-6).*t)/2
w=(10.^-12)*sin(4*pi.*f.*t)/(8*pi)
e=(10.^-12)*sin(2*pi.*f.*t)/pi
y= q + w + e
plot(t,y)
xlabel('Tiempo (s)');
ylabel('Amplitud (v)');
title('Y(t)');
SIMULACIÓN:
El objetivo de esta parte era unificar los puntos que nos generaba la señal
anteriormente realizada. Nos generaba una función con respecto a ‘’t’’ en la
parte de las absicas.
CÓDIGO:
f=10.^6;
p=1/f;
a=10.^-3;
t=(-0.5*10.^-6:0.000000001:4.5*10.^-6);
coseno=a*cos(2*pi*f*t)+10.^-3;
unitstepl=t>=0
j=t<=4*10.^-6;
h=coseno.*unitstepl.*j;
n=conv(h,h)
plot(n)
xlabel('Tiempo (s)');
ylabel('Amplitud (v)');
title('Y(t)');
SIMULACIÓN:
CONCLUSIONES