How do I get the value at a particular index?
372 ビュー (過去 30 日間)
回答 (1 件)
Siriniharika Katukam 2019 年 10 月 29 日
Consider A as the matrix, and x as indices, then
Values = A(x)
In case you need value of a 2-D matrix, define 'rowMatrix' which has the row indices and 'colMatrix' which has corresponding column indices, then
Values = A(rowMatrix, colMatrix)