필터 지우기
필터 지우기

if function for array

조회 수: 2 (최근 30일)
Chihiro Omori
Chihiro Omori 2019년 4월 12일
답변: madhan ravi 2019년 4월 12일
A = [1,-3, 7; -4, -16, 2 ;3, 2,-10]
If there are numbers<0, I would like to change the minus to plus by using 'IF' statement.
The result I want is A = [1,3,7; 4,16 2; 3, 2, 10].

채택된 답변

madhan ravi
madhan ravi 2019년 4월 12일
abs(A)

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by