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;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by