converting all array elements into positive elements

43 vues (au cours des 30 derniers jours)
Mohammed Qahosh
Mohammed Qahosh le 15 Juin 2019
Commenté : Mohammed Qahosh le 16 Juin 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.

Réponse acceptée

madhan ravi
madhan ravi le 15 Juin 2019

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by