Representing signals in the frequency domain after adaptive filtering
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have a trajectory signal (represented in x, y and z plane) that is distorted by breathing (see attachednFigure 1 top and middle panels). I have corrected the trajectory signal by using an adaptive filter (see Figure 1 – bottom panel). I can see the difference the filter makes visually in the time domain (Figure 1 - only representing Y trajectory) but I would also like to represent it in the frequency domain. I tried doing so using the pspectrum function but it’s not clear (see attached Figure 2). Here is the code I used to generate Figure 2:
subplot(231)
plot(t, bre), title('Breathing Signal')
subplot(232)
plot(t, posY), title('Y-Trajectory with Breathing artefact')
subplot(233)
plot(t, posY_cor), title('Y-Trajectory without Breathing artefact')
subplot(234)
pspectrum(bre,fs,'spectrogram'), title('Breathing signal');
subplot(235)
pspectrum(posY,fs,'spectrogram'), title('Y-Trajectory with Breathing artefact');
subplot(236)
pspectrum(posY_cor,fs,'spectrogram'), title('Y-Trajectory without Breathing artefact');
I'm not sure if its to do with the way the power (dB) colour bar is represented within the psepctrum function as the range for the breathing signal is different for the trajectory signal.
Is this the best way to do it? Or are the signals too similar in frequency to discern any differences? Are there any other ways of doing this?
Thanks in advance!
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!