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 日
doc abs
  1 件のコメント
Nisar Ahmed
Nisar Ahmed 2022 年 7 月 5 日
編集済み: Nisar Ahmed 2022 年 7 月 5 日
@Rik thank you got it

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by