How to obtain the frequency of a signal as function of the time?

2 vues (au cours des 30 derniers jours)
Giuseppe Naselli
Giuseppe Naselli le 10 Avr 2013
I have a discrete signal sampled at 0.005 seconds. (a 2-columns vector, the first colum is the time the second the value of the signal)
Plotting the signal as function of the time, it is possible to observe that
a) the signal amplitude decreases with time
b) the signal frequency increases with time
Therefore, I wish to plot two different things
1) the frequency of the signal as function of the time
2) the absolute value of the signal amplitude as function of the frequency
how can I do that? I will really appreciate if you can provide an example
Thanks in advance for your help !!!!!
G

Réponses (1)

Youssef  Khmou
Youssef Khmou le 10 Avr 2013
hi, This signal seems like a decreasing linear Chirp :
1) Frequency as function of time is called ' spectrogram') try :
doc spectrogram
S = spectrogram(x(:,2)) % because the second column contains the signal .
2) You can use the FFT function , many resources are available , try my submission : http://www.mathworks.com/matlabcentral/fileexchange/40002-psd-power-spectral-density-and-amplitude-spectrum-with-adjusted-fft

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by