Azzera filtri
Azzera filtri

if function for array

2 visualizzazioni (ultimi 30 giorni)
Chihiro Omori
Chihiro Omori il 12 Apr 2019
Risposto: madhan ravi il 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].

Risposta accettata

madhan ravi
madhan ravi il 12 Apr 2019
abs(A)

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by