Owning Class: spectral analysis
Requires: MathScript RT Module
b = minrepseq(a)
[b, c] = minrepseq(a)
Legacy Name: seqperiod
Finds the minimum-length repeating sequence in a vector.
| Name | Description |
|---|---|
| a | Specifies the input array. a is a real array. If a is a 2D array, minrepseq operates along the first non-singleton dimension of a. |
| Name | Description |
|---|---|
| b | Returns the length of the minimum-length repeating sequence. |
| c | Returns the repetitions of the sequence a(1:b) in a. |
[b, c] = minrepseq([1 2 3 1 2; 1 2 1 2 1])