using convolution with matlab

2 visualizaciones (últimos 30 días)
Passband  Modulation
Passband Modulation el 21 de Sept. de 2012
x[n]=n^3-n^2, 0<n<3
h[n]=1/n, -2<n<-1
y[n] is the convolution of x[n] and h[n]
how can i compute y[n] ?

Respuesta aceptada

Wayne King
Wayne King el 21 de Sept. de 2012
With all due respect, I think you need to take some time to read the MATLAB documentation.
n = 0:3;
x=n.^3-n.^2;
m=[-2:-1];
h=1./m;
y = conv(x,h)
  3 comentarios
Wayne King
Wayne King el 21 de Sept. de 2012
You should accept people's answers if they help you.
Passband  Modulation
Passband Modulation el 21 de Sept. de 2012
ok, just done!

Iniciar sesión para comentar.

Más respuestas (1)

Wayne King
Wayne King el 21 de Sept. de 2012
Use the function conv()
See the help for conv()
  1 comentario
Passband  Modulation
Passband Modulation el 21 de Sept. de 2012
ive tried, but it does not work at all.
n=[0:3];
x=n^3-n^2
m=[-2:-1];
h=1/m
y= conv(x,h)
no results at all, could u help?

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by