From: Alan G I. <ai...@am...> - 2006-06-21 08:40:55
|
On Tue, 20 Jun 2006, Keith Goodman apparently wrote:=20 > I have a matrix M and a vector (n by 1 matrix) V. I want to form a new=20 > matrix that contains the columns of M for which V > 0.=20 > One way to do that in Octave is M(:, find(V > 0)). How is it done in nump= y?=20 M.transpose()[V>0] If you want the columns as columns, you can transpose again. hth, Alan Isaac |