Owning Class: string
Requires: MathScript RT Module
c = strmatchall(a, b)
c = strmatchall(a, b, 'exact')
Legacy Name: strmatch
Finds occurrences of a string in an input matrix.
| Name | Description |
|---|---|
| a | Specifies a character matrix. |
| b | Specifies a string. |
| 'exact' | Reports only exact matches. |
| Name | Description |
|---|---|
| c | Returns the indexes of rows in a that contain b. c is a column vector. |
A = 'this';
B = strvconcat('that', 'this is', 'this is not');
C = strmatchall(A, B)
C = strmatchall(A, B, 'exact')