Why all the plots from my program originate from (0,0)?

H
henrysmith · Apr 28, 2020 · 2K views
Question
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.
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 12, 2026
The reason that usually simulink generated plots (out of scope) start from (0,0) is that the initial conditions of the Simulink blocks are set to zero.
In my opinion you should check the initial conditions of the source blocks you migt have.
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!