Member of the linalgebra class.
[i, j] = find(a)
[i, j, c] = find(a)
Returns the indexes of all non-zero elements in a matrix.
| Name | Description |
| a | Specifies a matrix. |
| Name | Description |
| i | Returns the first indexes of all non-zero elements of a. i is a column vector. |
| j | Returns the second indexes of all non-zero elements of a. j is a column vector. |
| c | Returns all non-zero elements of a. c is a column vector. |
A = [1, 2, 3; 0, 0, 0; 0, 2, 3]
[I, J] = find(A)