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

 Respuesta aceptada

Stephan
Stephan el 3 de Mzo. de 2019
Editada: Stephan el 3 de Mzo. de 2019

3 votos

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

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Mzo. de 2019

Editada:

el 3 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by