How do I find the frequency of a signal?

73 views (last 30 days)
EYUP KARTAL
EYUP KARTAL on 17 Jun 2020
Commented: Anmol Dhiman on 25 Jun 2020
I currently have an array of data points which is clearly damped oscillation just by looking at the graph, however how would i go about getting matlab to give me a readout of the frequencies.
I use findpeaks (link) to identify the peaks and their locations.Then, using by the location information to calculate the period and from that how can i go for frequency?
[pks,locs]=findpeaks(Accelaration);
natPeriod = diff(time_vector(locs));
freq. ??
  3 Comments
EYUP KARTAL
EYUP KARTAL on 17 Jun 2020
thank you for your comment but i didnt get it. i tried to do in this way
for ii=1:length(natPeriod)
omega(ii) = 2*pi/(natPeriod(ii));
end
and plots i get for non dimensional damping and frequency like below
but freq must be something like this:
Anmol Dhiman
Anmol Dhiman on 25 Jun 2020
Hi Eyup,
Have a look a similar ML Answer.
Regards,
Anmol Dhiman

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!