How to change the sign of some particular values in an array/matrix?
1 view (last 30 days)
Show older comments
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1055650/image.jpeg)
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!