MATLAB Answers

0

From negative to positive

Asked by Guido Pastore on 3 Mar 2019
Latest activity Edited by Stephan
on 3 Mar 2019
How can I make all the elements of an array of double positive that are negative?

  0 Comments

Sign in to comment.

1 Answer

Stephan
Answer by Stephan
on 3 Mar 2019
Edited by Stephan
on 3 Mar 2019
 Accepted Answer

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

  0 Comments

Sign in to comment.