finding harmonic amplitudes of a sinewave

I have a sine wave with frequency of 'wn', how can I get the amplitudes of its harmonics i.e amplitude at '2*wn', '3*wn' ... I tried using 'fft' function in matlab, if fft does that then why the sumation of all harmonics from 'fft' does not equal to the max amplitude of actual signal?

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Asked:

on 1 Oct 2020

Answered:

on 1 Oct 2020

Community Treasure Hunt

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

Start Hunting!