% Note: theta_p = 0 in this voltage sweep, so the real part is used as the d-axis component and the imaginary part as the q-axis component.