How can I insert row into matrix?

1 Ansicht (letzte 30 Tage)
baruch
baruch am 23 Aug. 2014
Kommentiert: baruch am 23 Aug. 2014
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].

Akzeptierte Antwort

Dishant Arora
Dishant Arora am 23 Aug. 2014
A1(3 , 1:2) = A(1,:);
  1 Kommentar
baruch
baruch am 23 Aug. 2014
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?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices 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