Filter löschen
Filter löschen

if function for array

2 Ansichten (letzte 30 Tage)
Chihiro Omori
Chihiro Omori am 12 Apr. 2019
Beantwortet: madhan ravi am 12 Apr. 2019
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].

Akzeptierte Antwort

madhan ravi
madhan ravi am 12 Apr. 2019
abs(A)

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays 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!

Translated by