How do I plot this square waveform using given equations for a SHM
2 views (last 30 days)
Show older comments
Hi guys, I have been struggling to plot this quasi square waveform using the given equation with the VDC, three alpha values.
I am doing the SHM for a three angle control techiniques to mitigate specific harmonics in output voltage of an H-bridge inverter.
I tried many methods but all I got is still not a square waveform
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/627368/image.jpeg)
2 Comments
Answers (1)
Joel Van Sickel
on 24 May 2021
Hello Yuehan,
It looks like the code you shared is an image? Can you share the text. It also looks like you are psasing pi/6 for alpha1 alpha2 and alpha 3, however, they need to be different values or vo1 vo2 and vo3 will not be different. Another issue is that this is an infinite series, and it looks like you are plotting up to the n =5, but you'll need to go much higher than that to get anything that actually looks like a square wave.
Regards,
Joel
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!