I have matrix A and a vector b, which specifies column index of the element to be extracted for each corresponding row of the matrix.
This question already has a开发者_如何学JAVAnswers here: Closed 11 years ago. Possible Duplicate:
say A = rand(2,2,2); [a,b,c] = find(A == A(1,2,2)) I got a=1 b=4 c=1 开发者_如何学编程what?Try this: