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 日

3 投票

Hi,
if you have no complex numbers:
abs(A)
For complex numbers abs will calculate the magnitude.
Best regards
Stephan

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2019 年 3 月 3 日

編集済み:

2019 年 3 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by