How to change the sign of some particular values in an array/matrix?

6 visualizaciones (últimos 30 días)
Hi,
I have some positive and -ve values in the curve below (data is also attached). How can I setup my code in such a way that the only negative sign changes to positve (while megnitude remains same) and postive remains positive.

Respuesta aceptada

Rik
Rik el 5 de Jul. de 2022

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by