How to get the fundamental frequency magnitude ?

35 views (last 30 days)
Hi,
I have an array of a pseudo-sin signal.
I want to get the fundamental magnitude of it knowing the fundamental frequency.
My approach is (about 4-5 command lines)...,
a) fft the signal; b) search for the magnitude of the fundamental frequency; c) show the magnitude.
There is no command to get the fundamental magnitude easily ?
Thanks.
Andre

Accepted Answer

Star Strider
Star Strider on 5 May 2014
If you have the Signal Processing Toolbox, use the findpeaks function.
  12 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!