Hi,
I want to compare these two strings by r-contiguous matching rule. So in this example if we set r as 6 then it will return true for the first example and false for the second example.
Example 1:
A='101010111111000000'B='01101101101010001011'return true (since it they both have 6 contiguous match '101010')
Example 2:
A='1010101010101010101'B='11111111000000101'return false (since they both have only 4 contiguous match '0101')
What is the fastest way in MATLAB since my data is huge? Thanks.
Best Answer