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!