medfreq with delta-F threshold ?
Show older comments
I am using the medfreq function to extract fast freq changes (few ms) in a sinewave signal. The function seems to work pretty well and better than "tfridge" (less artifacts), "sst" (faster) and instfreq (less artifacts).
however, when the source causes the signal to change in amplitude and no freq changes are present, it is when my problem starts. If one would imagine a spectrogram rapresentation of this: the signal would be a constant line, with some fast peaks occurring here and there (chirps). Using the medfreq function these are nicely detected.
Changes in amplitude are caused by movements in the signal source and cause the spectrogram trace to have gaps. In absence of freq modulations (chirps), the medfreq function detects a lot of noise - in correspondence of those gaps.
This suggests me that the medfreq function works "point to point", otherwise the gaps would be detected as "sinks" in the medfreq trace (but I could be wrong). Is there a way to impose a fixed range of freq in which the median is searched ? or somehow make it so that gaps in the main freq component are not creating artifacts which would be confused for chirps ?
4 Comments
Greg Dionne
on 10 May 2019
Would you be willing to post some sample data?
Greg Dionne
on 13 May 2019
Edited: Greg Dionne
on 13 May 2019
In your first example it seems like there's just one fairly dominant frequency component. I would probably try instfreq (https://www.mathworks.com/help/signal/ref/instfreq.html). See https://www.mathworks.com/help/signal/ug/hilbert-transform-and-instantaneous-frequency.html for an example (assuming you have a relatively recent copy of the Signal Processing Toolbox).
Your second example seems to have other faint components which may (or may not) interfere with obtaining the frequency. If I couldn't get reliable results on that, then I'd probably try to downconvert to baseband and try to reconstruct the signal from there.
If you attach your data, I can give it a try.
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

