From: Travis O. <oli...@ie...> - 2006-10-23 23:47:15
|
JJ wrote: > Hello. > I have a suggestion that might make slicing using > matrices more user-friendly. I often have a matrix of > row or column numbers that I wish to use as a slice. > If K was a matrix of row numbers (nx1) and M was a nxm > matrix, then I would use ans = M[K.A.ravel(),:] to > I had thought that something like that would be useful. It's called .A1 -Travis |