How to plot harmonic components of a sine wave
古いコメントを表示
I have a Sine wave signal as a column vector (this Sine signal was generated from another software 'LabVIEW' and then imported to Matlab and saved as a column vector). I want to find the magnitudes of specific harmonic components (such as 3rd and 5th harmonic) of this signal. At first I have tried to use the 'fft' function that converts my time domain signal to the frequency domain. This plots (barplot) frequency Vs. magnitude of the Sine signal. But, I want to plot(barplot) Harmonic order (X axis) Vs. magnitude (Y-axis) and see for example the magnitude of the 3rd harmonic component of the signal. I must be able to extract the value of H (harmonic order) which is not possible from the fft plot. I have attached here the .m file I am working on. I am not attaching the 'Sine' wave as it is okay if you use any sine wave with harmonics. I am more interested to know the plotting method to see harmonic orders with magnitudes (sample picture also attached).
Thanks a lot for your help. I really appreciate.
7 件のコメント
Salaheddin Hosseinzadeh
2015 年 6 月 3 日
編集済み: Salaheddin Hosseinzadeh
2015 年 6 月 3 日
Hi Maruf,
One question, is it possible to spot harmonics in a pure sin way at all?!
dpb
2015 年 6 月 3 日
Not if there aren't any, no... :)
Maruf
2015 年 6 月 3 日
Salaheddin Hosseinzadeh
2015 年 6 月 3 日
Maruf,
That was a rhetorical question.
If you use fft you can observe the single ton frequency, however I don't think if you can extract any harmonics out of that?! What are you really after?!
Maruf
2015 年 6 月 3 日
magesh radha
2015 年 9 月 13 日
Im doing DC to AC converter without using of filter, and i got 22% of THD . and i need to reduce the harmonics any one can help me to do..
Marcelo Vinicius de Paula
2020 年 11 月 18 日
You can add a capacitor to the output of the inverter, also, try using a unipolar PWM.
採用された回答
その他の回答 (1 件)
Honglei Chen
2015 年 6 月 3 日
0 投票
You can use thd for this, although it's not in the bar plot. But once you have the information, you can plot it yourself.
カテゴリ
ヘルプ センター および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!