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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by