why when i make conv between an averaging filter and a noisy circuit it doesn't get filtered?

1 次查看(过去 30 天)
n=0:499
x=sin(2*pi*n/50)
y=x+0.1*randn(size(n))
h=[11111]/5
z=conv(h,y)

采纳的回答

Image Analyst
Image Analyst 2014-4-29
You need commas between the ones in h:
n=0:499
x=sin(2*pi*n/50)
y=x+0.1*randn(size(n))
h=[1,1,1,1,1]/5
z=conv(h,y)

更多回答(1 个)

Andrei Bobrov
Andrei Bobrov 2014-4-29
编辑:Andrei Bobrov 2014-4-29
n=0:499;
x=sin(2*pi*n/50);
y=x+0.1*randn(size(n));
h=[1,1,1,1,1]/5;
z=conv(y,h,'same');
  3 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by