Clear Filters
Clear Filters

50 or 60 hz harmonics in MATLAB

2 views (last 30 days)
itsik
itsik on 17 May 2011
I have a model of transmition line and I need to add 50hz harmonics from the first harmonic to the 7th harmonic.
How can I do that?

Answers (1)

Walter Roberson
Walter Roberson on 17 May 2011
Identify the fft points corresponding to 100 Hz, 150 Hz, 200 Hz, 250 Hz, 300 Hz, 350 Hz, 400 Hz. Increase the absolute magnitude at those bin locations as is appropriate for the model you have of the energy contained in each of the harmonics. Note that I say "increase the absolute magnitude", not just "increase the value", as harmonics are not necessarily in phase.
Be sure to also mirror the change at corresponding bins in from the right hand side of the fft: e.g., if the 7th bin from the left is being affected, the 6th last from the end should be affected to the same degree.
To avoid dampening the overall result, increase the value of the first bin (the DC frequency) by the total energy you added to the system.

Community Treasure Hunt

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

Start Hunting!