From: Keith G. <kwg...@gm...> - 2006-06-21 03:04:27
|
I have a matrix M and a vector (n by 1 matrix) V. I want to form a new matrix that contains the columns of M for which V > 0. One way to do that in Octave is M(:, find(V > 0)). How is it done in numpy? |