i need to switch all integers in my array to positive numbers

조회 수: 2 (최근 30일)
Omar Almahallawy
Omar Almahallawy 2019년 6월 15일
답변: John D'Errico 2019년 6월 15일
A= [ 12 -16 -7 ]
answer= [ 12 16 7]
i need a function that converts all negative integers to positive integers

답변 (1개)

John D'Errico
John D'Errico 2019년 6월 15일
You might need to read the getting started tutorials, if you are asking questions this basic.
help abs

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by