dimanche 23 mars 2014

Replacing values in matrix python


Vote count:

0




How can one replace values of elements in a (n*n) matrix which are greater than one with 0 s? I have tried using matrix[matrix>=1]=0 but it is not working.



asked 26 secs ago






Aucun commentaire:

Enregistrer un commentaire