<< filter | Elementary functions | fix >> |
K = find(M) |
[R, C] = find(M) |
[R, C, V] = find(M) |
K = find(M, N) |
[R, C] = find(M, N) |
[R, C, V] = find(M, N) |
K = find(M, N, D) |
[R, C] = find(M, N, D) |
[R, C, V] = find(M, N, D) |
a scalar, vector, matrix, or multidimensional array.
positive integer scalar value: number of nonzeros to find.
direction: 'first' (default) or 'last'.
indices to nonzero elements (vector).
row subscripts (vector).
column subscripts (vector).
nonzero elements of M (vector).
K = find(M) returns a vector with the linear indices of each nonzero element of M.
M = rand(4, 3, 5);
[R, C, V] = find(M > 0.9)
M(R(1),C(1),V(1))
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET