using convolution with matlab

4 次查看(过去 30 天)
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] ?

采纳的回答

Wayne King
Wayne King 2012-9-21
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 个评论
Wayne King
Wayne King 2012-9-21
You should accept people's answers if they help you.

请先登录,再进行评论。

更多回答(1 个)

Wayne King
Wayne King 2012-9-21
Use the function conv()
See the help for conv()
  1 个评论
Passband  Modulation
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?

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by