replacing specific elements in a matrix

1 vue (au cours des 30 derniers jours)
antonet
antonet le 30 Juin 2012
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

Réponse acceptée

Walter Roberson
Walter Roberson le 30 Juin 2012
A(39:39:end,:) = 0;
  1 commentaire
antonet
antonet le 30 Juin 2012
Thanks Walter

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by