|
|
| File Information |
| Description |
MFIND Find matching rows or columns in a matrix
[ I B ] = mfind(M, X)
Find the row or column vector X within the matrix M.
If X is a row vector, I will contain the column indexes where X is a row in M.
If X is a column vector, I will contain the row indexes where X is a column in M.
B will contain the boolean matching rows or columns.
If no match if found, I will be empty.
Example:
a = [1 2; 3 4; 5 6];
[i b] = mfind(a, [3 4])
i = 2
b = [ 0; 1; 0 ]
[i b] = mfind(a, [1; 3; 5])
i = 1
b = [ 1 0 ]
|
| MATLAB release |
MATLAB 7.9 (2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Mar 2011 |
v1.0.1 Minor corrections in help section
v1.0.0 First release |
|
Contact us at files@mathworks.com