From negative to positive

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 MATLAB in Help Center and File Exchange

Asked:

on 3 Mar 2019

Edited:

on 3 Mar 2019

Community Treasure Hunt

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

Start Hunting!