How can I insert row into matrix?

조회 수: 1 (최근 30일)
baruch
baruch 2014년 8월 23일
댓글: baruch 2014년 8월 23일
I have a matrix A=[2 3;5 6] and then I have another matrix A1=[3 4 5;6 7 8;0 0 1].I want to insert my first row of matrix A (i.e [2 3])into third row of matixA1 in such a way that third row becomes[2 3 1].

채택된 답변

Dishant Arora
Dishant Arora 2014년 8월 23일
A1(3 , 1:2) = A(1,:);
  댓글 수: 1
baruch
baruch 2014년 8월 23일
and if I want to subtract 2nd row from first row of Matrix A and after that I want to insert it into A1 ,then how can I do that?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by