Está en la página 1de 8

PRIMERA CALSES PDS

1)

%%%%%%%%%%%%%
f1=1;
f2=2;
w1=2*pi*f1;
w2=2*pi*f2;
A=10;
fi1=0;
fi2=0;
B=5;
t=0:0.00033:1; %%%%%tener mucho en cuenta
xt=A*sin(w1*t+fi1);
yt=B*sin(w2*t+fi2);
grid on
subplot(2,1,1)
plot(t,xt);
subplot(2,1,2)
plot(t,yt);

2)

k1=1;
k2=2;
k3=3;
t=0:0.00001:1;
xt=sin(2*pi*k1*t)+sin(2*pi*k2*t)+sin(2*pi*k3*t);
plot(t,xt);
grid on

3)

t=0:0.00001:1;
xt=0;
for k=1:3
xt=xt+sin(2*pi*k*t); %% xt se suma y se vuelve a poner en la ecuacion
end
plot(t,xt)
grid on
4)

t=0:0.0001:1;
f=(1/0.2);
xt=square(2*pi*f*t);
plot(t,xt);
hold on
ylim=([-1.5,1.5]);
Segunda clase de pds

1)
%%%%%5secuencia de
n=-3:3;
xn=[0 0.5 -1 3 2 1.8 0 ];
stem(n,xn,'fill') %%%% señal analogica valores discretos me ayuda en la
grafica
figure(2);
plot(n,xn);

2)
%%%%%%%%%%%%%%%%%%%%%%%
n=0:5;
xn=2.^n;
stem(n,xn,'fill');
axis([-1 6 -1 40]);
grid

3)
n=-3:3;
xn=[0 0.5 -1 3 2 1.8 0 ];
yn= 2.^n;
subplot(1,2,1);
stem(n,xn,'fill');
subplot(1,2,2);
stem(n,yn,'fill');

4)
n=-3:3;
xn=2.*n;
x=[zeros(1,2) xn zeros(1,2)];
figure(1);
n=-5:5;
stem(n,x);
%%%%%%%%%%%%%%%
figure(2);
x=[zeros(1,17) xn zeros(1,17)];
n=-20:20;
stem(n,x)
5)
%%%%SUMA DE DOS SEÑALES
n=0:30;
x1=sin((n.*pi)/4);
stem(n,x1);
x2=cos((n.*pi)/7);
stem(n,x2);
y1=x1+x2;
figure(2);
stem(n,y1);
subplot(3,1,1);
stem(n,x1);
subplot(3,1,2);
stem(n,x2);
subplot(3,1,3);
stem(n,y1);

6)

%%%PRODUCTO DE DOS SEÑALES


n=0:30;
x1=sin((n.*pi)/4);
stem(n,x1);
x2=cos((n.*pi)/7);
stem(n,x2);
y1=x1.*x2;
figure(2);
stem(n,y1);
subplot(3,1,1);
stem(n,x1);
subplot(3,1,2);
stem(n,x2);
subplot(3,1,3);
stem(n,y1);

7)

%%%%impulso unitario
dn=[zeros(1,2) 1 zeros(1,5)];
n=-5:5;
stem(n,dn,'fill')
8)

%%%%escalon unitario
n=-2:5;
un=[zeros(1,2) 1 ones(1,5)];
stem(n,un,'fill');

axis([-8 15 -1 2])

9)
%%%%%rampa unitaria%%%%
n=0:5;
rn=n;
r=[zeros(1,5) rn];
n=-5:5;
stem(n,r)

10)
%%%%exponenciales
alfa=0.5;
n=0:10;
xn=alfa.^n;
stem(n,xn)

11)
%%%exponenciales
alfa=-1.5;
n=0:20;
xn=alfa.^n;
stem(n,xn)
12)
%%%% Parte real

n=0:10;
r=1;
phi=pi/4;
a=r.^n;
b=cos(n.*phi);
xreal=a.*b;
stem(n,xreal)
Pds aliasing

NO CUPLE QUE SEA PERIDODICO

PARA QUE SEA PERIDICO TEMOS Q TENER UNA RELACION DE ENTEROS DE K Y DE N

K/N

////////////////////

PERO SI REFPRESENTA ALA SEÑAL DE TIEMPO CONTINUO

///////
NO NESESARIAMENTE ES PERIODICO

PERO CUMPLE CON ELTEOREMA DE MUESTREO


Transformda z inversa

////////////////

b=[1 -1 -6];
a=[1 -1.5 -1];
[R,R,K]=residuez(b,a);
n=0:1:10;
h=6-(8.0*(2)^n)-4.2*((-0.5)^n);
zeros
stem(h,zeros);

//////////////////////////
b=[1 -1 -6];
a=[1 -1.5 -1];
ceros=roots(b);
polos=roots(a);
zplane(b,a);
[h,n]=impz(b,a)

También podría gustarte