converting all array elements into positive elements
43 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
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!