Documentos de Académico
Documentos de Profesional
Documentos de Cultura
clc
clear all
n= 0:0.01:1;
x = 3*cos(20*pi*n+(pi/4))-
2;
Y = sin(40*pi*n);
A = x+Y;
stem(n,A)
grid clc
clear all
A=5;
f=0.1;
T=3*(1/f);
duty=60;
n=0:T;
x =
A*square(2*pi*f*n,duty);
stem(n,x),grid on, ylim([-
6 6])
clc
clear all
A=5;
Fs=10000; c. Una señal diente de sierra,
f=20; amplitud 5 Volts y frecuencia
T=3*(1/f); fundamental 20Hz.
clc
clear all
A=5;
Fs=10000;
f=20;
T=3*(1/f);
width=0.5;
t=0:1/Fs:T-1/Fs;
x =
A*sawtooth(2*pi*f*t,width)
;
plot(t,x),grid on, ylim([-
6 6])
d. Una señal senoidal
amortiguada
exponencialmente.
clc
clear all
t=0:0.01:10;
x=5*sin(99*t).*exp(-2*t);
plot(t,x)
grid
clc
clear all
A = 5;
f = 0.1;
T = 3*(1/f);
width = 0.5;
n = 0:T;
x =
A*sawtooth(2*pi*f*n,width)
;
stem(n,x),grid on,ylim([-6
6])
clc
clear all
t=0:0.01:10;
x=5*sin(99*t).*exp(-2*t);
stem(t,x) ), title('ECUACION
grid CONTINUA')
subplot(4,2,2),stem(t,A
); grid on, ylim([-6
2])
xlabel('Tiempo
(s)'),ylabel('Amplitud'
), title('ECUACIÓN
DISCRETA')
subplot(4,2,3),plot(t,h
); grid on, ylim([-5
5])
e. Grafique las señales anteriores xlabel('Tiempo
en una sola gráfica y rotule (s)'),ylabel('Amplitud'
cada una de ellas con sus ejes. ), title('SENOIDAD
clc AMORTIGUADA CONTINUA')
clear all
t = 0:0.01:2; subplot(4,2,4),stem(t,v
); grid on, ylim([-5
x = 5])
3*cos(20*pi*t+(pi/4))- xlabel('Tiempo
2; (s)'),ylabel('Amplitud'
Y = sin(40*pi*t); ), title('SENOIDAL
A = x+Y; AMORTIGUADA DISCRETA')
r =
3*cos(20*pi*t+(pi/4))- A=5;
2; f=20;
e = sin(40*pi*t); Fs=10000;
u = r+e; T=3*(1/f);
t1=0:1/Fs:T-1/Fs;
v=5*sin(99*t).*exp(-
2*t); duty=60;
x1 =
h=5*sin(99*t).*exp(- A*square(2*pi*f*t1,duty
2*t); );
f1=0.1;
subplot(4,2,1),plot(t,u
); grid on, ylim([-6 T1=3*(1/f1);
2]) n1=0:T1;
xlabel('Tiempo
(s)'),ylabel('Amplitud'
x2 = subplot(4,2,6),stem(n1,
A*square(2*pi*f1*n1,dut x2); grid on, ylim([-6
y); 6])
xlabel('Tiempo
width=0.5; (s)'),ylabel('Amplitud'
x3 = ), title('CUADRADA
A*sawtooth(2*pi*f*t1,wi DISCRETA')
dth);
subplot(4,2,7),plot(t1,
width = 0.5; x3); grid on, ylim([-6
x4 = 6])
A*sawtooth(2*pi*f1*n1,w xlabel('Tiempo
idth); (s)'),ylabel('Amplitud'
), title('SIERRA
subplot(4,2,5),plot(t1, CONTINUA')
x1); grid on, ylim([-6
6]) subplot(4,2,8),stem(n1,
xlabel('Tiempo x4); grid on, ylim([-6
(s)'),ylabel('Amplitud' 6])
), title('CUADRADA xlabel('Tiempo
CONTINUO') (s)'),ylabel('Amplitud'
), title('SIERRA
DISCRETA')