MATLAB: From negative to positive

please help me..

How can I make all the elements of an array of double positive that are negative?

Best Answer

Hi,
if you have no complex numbers:
abs(A)
For complex numbers abs will calculate the magnitude.
Best regards
Stephan