23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2abs<br />

Purpose Absolute value and complex magnitude<br />

Syntax Y = abs(X)<br />

Description abs(X) returns the absolute value, X<br />

, for each element of X.<br />

Examples abs(-5)<br />

If X is complex, abs(X) returns the complex modulus (magnitude),<br />

abs(X) = sqrt(real(X).^2 + imag(X).^2)<br />

ans =<br />

5<br />

abs(3+4i)<br />

ans =<br />

5<br />

See Also angle, sign, unwrap<br />

abs<br />

2-27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!