I am building a state-space feedback controller for a single phase bipolar inverter by using MATLAB Simulink. I want to extact the angle of the output voltage as part of the control strategy. However, I found out all the voltage plots originate from (0,0). In such a case, how to tell the phase difference and which voltage is the reference? I attempted to use code "Angle(V)" and FFT function block. It either give me 0 degree or 180 degrees. I have also tried to use "phasor solver", however, my IGBT switches are not compatible with this mode. Anybody has experience of extracting phase anlge of a voltage in MATLAB Simulink? I really appreciate any suggestions and it is urgent.
John Williams answered .
2025-11-20