Multiply values in array by *-1
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Edward Keavney
el 28 de Jul. de 2022
Comentada: Edward Keavney
el 28 de Jul. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!