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

조회 수: 6 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2022년 7월 5일
편집: Nisar Ahmed 2022년 7월 5일
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.

채택된 답변

Rik
Rik 2022년 7월 5일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by