From negative to positive

146 vues (au cours des 30 derniers jours)
Guido Pastore
Guido Pastore le 3 Mar 2019
Modifié(e) : Stephan le 3 Mar 2019
How can I make all the elements of an array of double positive that are negative?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Elementary Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by