フィルターのクリア

Replacing a row with another one

93 ビュー (過去 30 日間)
Sabbas
Sabbas 2012 年 7 月 2 日
コメント済み: Yuval Froman 2019 年 8 月 10 日
Dear all,
I have a cell matrix A and I want to replace the 6th row with another one that I have created
Is there a way to do that?
thanks

採用された回答

Thomas
Thomas 2012 年 7 月 2 日
is this what you want
a={'1' '2' '3';'4' '5' '6';'7' '8' '9'; 'a' 'b' 'c'; 'd' 'e' 'f'; 'g' 'h' 'i'}
new={'1' '2' '3'} % the row to replace row 6 with
a(6,:)=new % replace row 6 in a with new
  2 件のコメント
Sabbas
Sabbas 2012 年 7 月 2 日
thank you
Yuval Froman
Yuval Froman 2019 年 8 月 10 日
is there an option to do this with a row with size smaller than the matrix rows?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by