From negative to positive

131 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by