Robuta

https://uk.mathworks.com/matlabcentral/cody/problems/2371?s_tid=prof_contriblnk Integer sequence - 2 : Kolakoski sequence - MATLAB Cody - MATLAB Central integersequencematlabcodycentral