Plotting Experimental vs Theoretical Filter in Matlab
조회 수: 5 (최근 30일)
이전 댓글 표시
I have designed an IIR filter in matlab and then used those coefficients to do some audio filtering on some additional hardware. I then logged several frequencies using a function generator and an oscilloscope. Now I'd like to take the data I've collected and compare it to the original filter in matlab. Data pieces I have:
1. Original filter coefficients.
2. Input and output amplitudes of the experimental filter at a range of different frequencies.
If I plot the theoretical filter using code like this:
H = dsp.IIRFilter('Numerator',bcoefs,'Denominator',acoefs);
fvtool(H);
I get a nice curving theoretical graph.
However, my experimental data when I plot it like this:
plot(freqs,sfilter);
Where freqs is a vector of my frequencies and sfilter is a vector of the amplitudes I get a linear graph.
I need help figuring out how to compare my theoretical filter to my actual data. Any ideas here would be greatly appreciated.
Thanks in advance.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!