High pass filter doubt in matlab
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Wayne King
il 19 Set 2011
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
il 20 Set 2011
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
Vedere anche
Categorie
Scopri di più su Filter Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!