Академический Документы
Профессиональный Документы
Культура Документы
E
QUIMICA
PRACTICA N°4
Cuenta desde -4 a 8
Crea un array de ceros que tiene un tamaño
Los colores de una subparcela compleja
Se utiliza para las propiedades de texto o un valor variable
Son los ejes máximos y mínimos
%Código 7: Ejemplo de señales aperiódicas en TC
t=-4:8;
x=[ones(1,4) n(1:5) -ones(1,2) ones(1,2)];
subplot(122),stairs(t,x,'LineWidth',2);
line([min(t) max(t)],[0 0] )
axis([-4 8 min(x)-1 max(x)+1]);
xlabel('t'); title('x(t)')
t= -0.4:.001:0.3;
x1=sin(10*pi*t);
x2=sin(20*pi*t);
subplot(2,1,1); plot(t,x1+x2,'LineWidth',2)
xlabel('t')
title('x(t)')
grid on
x1i=sin(10*pi*(-t));
x2i=sin(20*pi*(-t));
subplot(2,1,2); plot(t,x1i+x2i,'LineWidth',2)
xlabel('t') title('x(-t)')
grid on
%Código 10: Ejemplo de una señal desplazada o atrasada en el tiempo
t= -.4:.001:.3;
x1=sin(10*pi*t);
x2=sin(20*pi*t);
x=x1+x2;
subplot(211),plot(t,x, 'LineWidth',2)
xlabel('t'), title ('x(t)'), grid
t0=.1;
x1=sin(10*pi*(t-t0));
x2=sin(20*pi*(t-t0));
x=x1+x2;
subplot(212),plot(t,x, 'LineWidth',2)
xlabel('t'), title ('x(t-0.1)'), grid
%Código 11: Señal en TD x[n] y señal
adelantada x[n + 2]
n= -5:5;
x1=exp(1i.*n);
subplot(211),stem(n,real(x1),'LineWidth'
,2)
xlabel('n'), title('Real\{x[n]\}'), grid
x2=exp(1i.*(n+2));
subplot(212),stem(n,real(x2),'LineWidth'
,2) xlabel('n'), title('Real\
{x[n+2]\}'), grid