From negative to positive

147 ビュー (過去 30 日間)
Guido Pastore
Guido Pastore 2019 年 3 月 3 日
編集済み: Stephan 2019 年 3 月 3 日
How can I make all the elements of an array of double positive that are negative?

採用された回答

Stephan
Stephan 2019 年 3 月 3 日
編集済み: Stephan 2019 年 3 月 3 日
Hi,
if you have no complex numbers:
abs(A)
For complex numbers abs will calculate the magnitude.
Best regards
Stephan

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by