replacing specific elements in a matrix

1 回表示 (過去 30 日間)
antonet
antonet 2012 年 6 月 30 日
Dear all,
I have a matrix A of dimension 9126 by 2 and I want to replace the elements (39,2) (39*2,2) , (39*3,2), (39*4,2) and so forth by zero
Is there any simple way to do that.
The matrix is of the form A=[ 1 2; 3 4];
thanks

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 30 日
A(39:39:end,:) = 0;
  1 件のコメント
antonet
antonet 2012 年 6 月 30 日
Thanks Walter

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by