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

3 votes

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 MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by