Cody

Solution 1937660

Submitted on 16 Sep 2019 by Augusto Mazzei
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
HM = [1 1 0 1 0 0 0 1 1 0 1 1 0 0 0]; trk = [0 0 0 1 1 1 1 1 1 1 1 1 1 1 1]; assert(isequal(TrkState(HM),trk))

on = 4 5 6 7 8 9 10 11 12 13 14 15 of = 1×0 empty double row vector 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1

2   Pass
HM = [1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0]; trk = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1]; assert(isequal(TrkState(HM),trk))

on = 15 of = 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1

3   Pass
HM = [1 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1]; trk = [0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1]; assert(isequal(TrkState(HM),trk))

on = 3 4 5 6 7 8 17 of = 9 10 11 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1