MATLAB: Count cycles in a signal

cyclesfrequencysignalstemperature

Hello everybody;
I would like to count the number of cycles for a specific signal as shown in the below figure.
Thanks in advance.
frequencies.jpg

Best Answer

Use the findpeaks (link) function. Since this appears to be a modulated sine carrier, you might also find the envelope (link) function helpful to recover the modulating signal, then use findpeaks on it as well.