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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by