High pass filter doubt in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a signal in both time domain and freq domain and would like to use highpass filter to filter out the noise frequencies over 500Hz. I have designed a Highpass filter using SP tool and could not able to go ahead after that. My doubts are that, how can i pass my signal into this highpass filter(time domain or freq domain signal) and after that i would like calculate the power of the out put signal.
Can any one help me, how can i do this. See my picture below.
댓글 수: 0
답변 (2개)
Wayne King
2011년 9월 19일
Hi, I don't see any picture.
Once you design your filter, did you export it to the command window? You do this by File -> Export
You have the option of exporting the filter as coefficients or as a filter object.
If you export the filter as coefficients use filter() as follows: (I assume input is your data in the time domain).
output = filter(Num,1,input); %FIR filter
output = filter(Num,Den,input); %IIR filter
If you export an object, use
output = filter(Hd,input);
Hope that helps,
Wayne
Wayne King
2011년 9월 20일
You need to specify what measure of power you want to calculate. If you just want to calculate the norm squared, you can use
norm(x)
If you want to measure power in a particular frequency interval, you can use a spectrum object to get a PSD measurement and then use the avgpower() method with a specified interval to get the power.
Wayne
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!