Matlab row Subtraction operation change only 2nd row

1 vue (au cours des 30 derniers jours)
Virendra Kowale
Virendra Kowale le 30 Jan 2021
Commenté : Virendra Kowale le 1 Fév 2021
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']

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur External Language Interfaces dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by