필터 지우기
필터 지우기

how can i add 2 row

조회 수: 6 (최근 30일)
Light
Light 2013년 6월 6일
A=[-1,-1,0,0,0;0,0,0,-1,0;0,1,-1,0,-1;0,0,1,0,0;1,0,0,1,1]
With that matrix how can i add row to row command (code)
And in any kind of matrix?

채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 6일
A(FirstRow,:) + A(SecondRow,:)
Or if you want to get fancier,
sum(A([FirstRow, SecondRow],:))
  댓글 수: 1
Light
Light 2013년 6월 7일
Tnx

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by