Obtaining fundamental frequency wave from a PWM signal
20 次查看(过去 30 天)
显示 更早的评论
Hi, Is there a way to get harmonic waves extracted from a signal. Say if I have a square wave I want to extract and plot 3 sin waves.
Similarly if a a PWM signal (ie a square wave), is it possible to plot the 1st fundamental sine wave.
Thank you
0 个评论
采纳的回答
laurie
2013-8-21
it seems you want to do a Fourier transform of your signal. See http://www.mathworks.fr/fr/help/matlab/ref/fft.html
once you get the Fourier transform results, you can delete all frequencies except for the fundamental one, do a reverse Fourier transform and plot the result.
0 个评论
更多回答(0 个)
社区
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!