Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DEBER 1
Definimos la seal:
+7 7 < 3
() = { 4 3<3
+ 7 3<7
Cdigo para grfico en Matlab:
t=-7:0.1:7;
x=((t>-7)&(t<=-3)).*(t+7)+((t>-3)&(t<=3)).*(4)+((t>3)&(t<=7)).*(-t+7);
plot(t,x)
ylabel('x(t)')
xlabel('t')
axis equal
grid on
Grfico en Matlab:
() = ()
Cdigo para grfico en Matlab:
t=-7:0.1:7;
x=((t>-7)&(t<=-3)).*(-t+7)+((t>-3)&(t<=3)).*(4)+((t>3)&(t<=7)).*(t+7);
plot(t,x)
ylabel('x(t)')
xlabel('t')
axis([-7 7 -1 15])
grid on
Grfico en Matlab:
() = ()
Cdigo para grfico en Matlab:
t=-7:0.1:7;
x=((t>-7)&(t<=-3)).*(2*t+7)+((t>-3)&(t<=3)).*(4)+((t>3)&(t<=7)).*(-
2*t+7);
plot(t,x)
ylabel('x(t)')
xlabel('t')
axis([-7 7 -8 5])
grid on
Grfico en Matlab:
() = (/)
Cdigo para grfico en Matlab:
t=-7:0.1:7;
x=((t>-7)&(t<=-3)).*(t/2+7)+((t>-3)&(t<=3)).*(4)+((t>3)&(t<=7)).*(-
t/2+7);
plot(t,x)
ylabel('x(t)')
xlabel('t')
axis([-7 7 -1 6])
grid on
Grfico en Matlab:
() = ( )
Cdigo para grfico en Matlab:
t=-7:0.1:7;
x=((t>-7)&(t<=-3)).*(-t+5)+((t>-3)&(t<=3)).*(4)+((t>3)&(t<=7)).*(t+9);
plot(t,x)
ylabel('x(t)')
xlabel('t')
axis([-7 7 0 16])
grid on
Grfico en Matlab:
Definimos la seal con el siguiente cdigo:
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(n,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-8 8 -4 6])
grid on
Grfico:
[] = []
Cdigo en Matlab
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(-n,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-8 8 -4 6])
grid on
Grfico
[] = [ + ]
Cdigo en Matlab
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(n+3,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-5 11 -4 6])
grid on
Grfico
[] = [ ]
Cdigo en Matlab
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(-n-3,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-11 5 -4 6])
grid on
Grfico
[] = [ + ]
Cdigo en Matlab
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(-n+3,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-5 11 -4 6])
grid on
Grfico
n=-7:1:7;
x=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
hold on
stem(2*n,X)
%plot(n,X,'r')
ylabel('x[n]')
xlabel('n')
axis([-15 15 -4 6])
grid on
Grfico
Cdigo:
n1=-7:1:7;
f1=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
c1=newtonInterpolacion2(n1,f1);
X1=polyval(c1,n1)
stem(n1,X1,'r')
hold on
ylabel('x[n]')
xlabel('n')
axis([-8 8 -4 6])
grid on
Grfico:
[] = []
Cdigo en Matlab
n1=-7:1:7;
f1=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
c1=newtonInterpolacion2(n1,f1);
X1=polyval(c1,n1)
stem(-n1,X1,'r')
hold on
ylabel('x[n]')
xlabel('n')
axis([-8 8 -4 6])
grid on
Grfico
[] = [ + ]
Cdigo en Matlab
n1=-7:1:7;
f1=[2 3 5 -3 2 4 4 2 4 4 2 -3 5 3 2];
c1=newtonInterpolacion2(n1,f1);
X1=polyval(c1,n1)
stem(n1+3,X1,'r')
hold on
ylabel('x[n]')
xlabel('n')
axis([-4 10 -4 6])
grid on
Grfico
Ejemplo, grfico:
diezmado(sin(2*n),1,1)
m: es el vector que nos indica la posicin de la seal discreta en el eje t y su par ordenado
m=
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Otro ejemplo:
x=sin(n) M=2
diezmado(sin(n).^2,2)
m=
Columns 1 through 6
Columns 7 through 11