How does filter function works?
이전 댓글 표시
Hi,
I used edit filter to see how does it work but I did not find any relative information. I used FIR filter filter(b,1,signal). I need to know how does it work.
Thankss
답변 (1개)
Daniel Shub
2011년 12월 13일
See this filter documentation
doc filter
as well as this question: http://www.mathworks.com/matlabcentral/answers/9900-use-filter-constants-to-hard-code-filter
댓글 수: 6
Jan
2011년 12월 13일
I agree completely. +1
khatereh
2011년 12월 20일
Jan
2011년 12월 20일
As explained in the documentation, z is the current status of the filter. The input z is the initial condition of the filter, the z in the output is the final condition. If you omit the input z it is set to the zero matrix.
You find the M-code for the filter command in the link Daniel has posted. There your can inspect what z does.
Daniel Shub
2011년 12월 20일
@khatereh, it depends on what the context is. As Jan mention it could be the filter state. The term z^(-n) can also represent a delay.
khatereh
2012년 1월 6일
Daniel Shub
2012년 1월 6일
I am guessing you want to leave it out. The zi/zf input/outputs are most useful for when you are filtering in blocks. I believe that if you leave zi out, MATLAB assumes that the input has been zero for a very long time.
카테고리
도움말 센터 및 File Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!