i need to switch all integers in my array to positive numbers
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A= [ 12 -16 -7 ]
answer= [ 12 16 7]
i need a function that converts all negative integers to positive integers
0 Kommentare
Antworten (1)
John D'Errico
am 15 Jun. 2019
You might need to read the getting started tutorials, if you are asking questions this basic.
help abs
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!