필터 지우기
필터 지우기

filter, decay, delayed versions

조회 수: 2 (최근 30일)
PChoppala
PChoppala 2012년 9월 11일
Hello everyone,
I need advice on a simple query.
I need a FIR filter which has decay time specified by me.
The filter coefficients will decay either exponentially or any profile I want.
The filter will basically add delayed versions of my signal which is randn(1,1000).
How can I do this in matlab?
Cheers
P

답변 (1개)

Jan
Jan 2012년 9월 11일
Perhaps something like this:
B = [1,3,2,4,5,6,4,3]; % Or "any profile you want"
B = B / sum(B); % For example
A = 1;
x = rand(1, 1000);
y = filter(B, A, x);
  댓글 수: 1
PChoppala
PChoppala 2012년 9월 12일
Hi,
As per your code, y is one copy of a delayed version of x. That helps, thank you.
However, just to add, I want to specify as gain decay of x (say 60dB decay) as well as a delay of 1 sec,
can you please help in this?
Thanks
P

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by