Dose anybody know how to rotate a phasor in Simulink? For example, Rotate the phasor A 120 degree to Phasor B?
Best Answer
Hi,
Try multiplying the phasor you want to rotate with a gain block of gain such that and . This shifts the input phasor at the required angle without changing the magnitude. You could view the magnitude and phase of the output phasor using Complex to Magnitude-Angle block. Please refer the attached figure to see how these blocks are connected. Hope it works.
To determine the magnitude and phase response of any linear, time-invariant (LTI) system, you need to get the impulse response of the system in the time domain. This can be done by adding the "Discrete Impulse" block (DSP Sources Library) as the input to your filter system. The output of the system is then defined to be its impulse response.
After you have the impulse response, you want to take the FFT (Transforms Library), and separate the complex output of the FFT into the Magnitude and Phase components by the "Complex to Magnitude-Angle" block (Math Operations Library). You can then configure the outputs accordingly.
The default coloring of surf is decided by Z axis value, so MATLAB is behaving as expected. If you want to preserve the original coloring, you need to set CData.
Best Answer