Multiply values in array by *-1
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Edward Keavney
le 28 Juil 2022
Commenté : Edward Keavney
le 28 Juil 2022
Hi,
I have an array 1X106. I want to be able to multiply specific entries in the array by -1.
e.g., multiplying the 16, 17 and 18 value in the array by -1 whilst still keeping the remainder of the array with the original values.
Any help would be greatly appreciated,
Thanks!
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!