converting all array elements into positive elements
43 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
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!