converting all array elements into positive elements

43 Ansichten (letzte 30 Tage)
Mohammed Qahosh
Mohammed Qahosh am 15 Jun. 2019
Kommentiert: Mohammed Qahosh am 16 Jun. 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.

Akzeptierte Antwort

madhan ravi
madhan ravi am 15 Jun. 2019

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by