Finding a specific amplitude-frequency in the time domain

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
Behrouz
Messages
21
Reaction score
0
Hello,

I have a signal and got the FFT result of that. I have shown them both below along with the MATLAB code.

May I ask if there is any method to find the time zone(s) in the signal that a specific frequency has(have) happened?

The reason I'm asking this is that I want to specify the time that I had a (specific) low frequency with a (specific) high amplitude.
Code:
%% apply fft on the csv and plot the result

nfft = length(M);

nfft2 = 2^nextpow2(nfft);

ff = fft(M, nfft2);

fff = ff(1:nfft2/2);

stem(abs(fff));

uc?id=1Ps_ewvEN6HIb2z9CS7gGiEnNI3GP4mts.png

uc?id=1W-38kvWD1hDHxxsU9rRDILzKHH8Wb8bP.png


Any advice would be greatly appreciatd.

Regards,
Behrouz
 

Attachments

  • uc?id=1W-38kvWD1hDHxxsU9rRDILzKHH8Wb8bP.png
    uc?id=1W-38kvWD1hDHxxsU9rRDILzKHH8Wb8bP.png
    15.5 KB · Views: 439
  • uc?id=1Ps_ewvEN6HIb2z9CS7gGiEnNI3GP4mts.png
    uc?id=1Ps_ewvEN6HIb2z9CS7gGiEnNI3GP4mts.png
    13.8 KB · Views: 503
Physics news on Phys.org