Subtraction of matrix rows

2 visualizzazioni (ultimi 30 giorni)
fathi
fathi il 25 Lug 2018
Modificato: Stephen23 il 25 Lug 2018
I like to the subtraction of matrix rows .. EX. A = [ 2 3 4; 3 2 3] ... I want the absolute value from substation the first row from the second row and make the summation of the new row.... so the answer suppose to be as next:... 1. B = [ 1 1 1 ]..... And ..D = 3 ... thank you

Risposte (1)

Stephen23
Stephen23 il 25 Lug 2018
Modificato: Stephen23 il 25 Lug 2018
diff(A)
diff(A,1,1)

Categorie

Scopri di più su Operating on Diagonal Matrices 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