From negative to positive

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

 Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by