Get submatrix by array of column and row indices


(Tsnewer) #1

Hello,
How can i choose some rows in a matrix arbitrarily to product a new matrix ? For example, i can do it in matlab like this, A=rand(5,5); index=[1 3 5]; B=A(index,:); .


(Christoph Rüegg) #2

This is not yet supported out of the box, but has been asked for repeatedly. I plan to work on this over the next couple weeks.

Thanks,
Christoph


(Tsnewer) #3

Thanks for your response.