MATLAB: How to take modulus

MATLAB

| a |^2

Best Answer

abs(a)^2
or
norm(a)