Matlab row Subtraction operation change only 2nd row

4 Ansichten (letzte 30 Tage)
In Matlab after subtraction operation of row2 of the same matrix(eg:-row2' = row2-row1) how to rewrite the resulatant matrix where 1st row is as it is and 2nd row' = row2 - row1 A'=[row1; row2']

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Jan. 2021
Aprime = A;
Aprime(2,:) = Aprime(2,:) - Aprime(1,:);

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB 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