converting all array elements into positive elements

48 visualizaciones (últimos 30 días)
Mohammed Qahosh
Mohammed Qahosh el 15 de Jun. de 2019
Comentada: Mohammed Qahosh el 16 de Jun. de 2019
I have an aray like this:
A=[1 -3 -1 4]
I would like to have the same elemnt but with all elements have been converted to positive
Then,
A=[1 3 1 4]
Any suggestions? Thank you in advance.

Respuesta aceptada

madhan ravi
madhan ravi el 15 de Jun. de 2019

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by