The four-quadrant arctangent is needed to find the angle of a (non-zero) complex number:
syms w real
X(w) = 1/(1 + 1j*w)^2;
phase(w) = atan2(simplify(imag(X)),simplify(real(X)))
angle(X(1))
phase(1)
which is incorrect since the phase of this signal is
. I wonder if I did something wrong or if it's something intertal of the angle() function.Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!