i need to switch all integers in my array to positive numbers
2 次查看(过去 30 天)
显示 更早的评论
A= [ 12 -16 -7 ]
answer= [ 12 16 7]
i need a function that converts all negative integers to positive integers
0 个评论
回答(1 个)
John D'Errico
2019-6-15
You might need to read the getting started tutorials, if you are asking questions this basic.
help abs
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!