How to display the reference voltage from the SPWM generated?
3 次查看(过去 30 天)
显示 更早的评论
Dear belove community,
I currently doing a project regarding SPWM modulation technique. I managed to generate 5-level output as shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783958/image.jpeg)
However, I wanted to know how I can plot the reference voltage wave similar to the blue colour line as shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/783963/image.jpeg)
I got this picture from an aritcle journal. Really appreciate it if you advice me on this matter. Thank you
0 个评论
回答(1 个)
Sai Sasank Kota
2021-12-1
You can use a "Mux" Block in Simulink with 2 inputs i.e, input 1 would be the output and input 2 would be your reference voltage. Connect the output of the "Mux" Block to the "Scope" block. Now you can see both the signals on the same axis in the "Scope" block. You can edit the color, thickness of the signals in the "Scope" block.
The following link may help for editing the signal view in the "Scope" block.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!