medfreq with delta-F threshold ?
Afficher commentaires plus anciens
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 commentaires
Greg Dionne
le 10 Mai 2019
Would you be willing to post some sample data?
Greg Dionne
le 13 Mai 2019
Modifié(e) : Greg Dionne
le 13 Mai 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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spectral Measurements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


