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

2 vues (au cours des 30 derniers jours)
Nisar Ahmed
Nisar Ahmed le 5 Juil 2022
Modifié(e) : Nisar Ahmed le 5 Juil 2022
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.

Réponse acceptée

Rik
Rik le 5 Juil 2022

Plus de réponses (0)

Catégories

En savoir plus sur Language Fundamentals 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