MATLAB Answers

Matlab row Subtraction operation change only 2nd row

조회 수: 1(최근 30일)
Virendra Kowale
Virendra Kowale 2021년 1월 30일
댓글: Virendra Kowale 2021년 2월 1일
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']

채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 30일
Aprime = A;
Aprime(2,:) = Aprime(2,:) - Aprime(1,:);

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by