From negative to positive

214 views (last 30 days)
Guido Pastore
Guido Pastore on 3 Mar 2019
Edited: Stephan on 3 Mar 2019
How can I make all the elements of an array of double positive that are negative?

Accepted Answer

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

More Answers (0)

Categories

Find more on Elementary Math in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by