Code:
clear all input str1(id) byte(a1) byte(b2) byte(c1) byte(f4) byte(m1) byte(m2) byte(t3) a 2 2 2 2 3 3 3 b 5 5 1 2 3 4 5 c 1 1 1 1 1 1 1 d 5 4 5 6 4 5 3 e 1 1 2 2 2 2 1 f 7 7 7 1 1 1 1 g 2 2 2 2 2 2 1 h 3 3 3 1 1 1 2 end
Code:
id a1 b2 c1 f4 m1 m2 t3 maxlength a 2 2 2 2 3 3 3 4 b 5 5 1 2 3 4 5 2 c 1 1 1 1 1 1 1 7 d 5 4 5 6 4 5 3 1 e 1 1 2 2 2 2 1 4 f 7 7 7 1 1 1 1 4 g 2 2 2 2 2 2 1 6 h 3 3 3 1 1 1 2 3
0 Response to How to create a variable representing the max length of consecutively same numbers in a row?
Post a Comment