Cody

Solution 1838326

Submitted on 4 Jun 2019 by Michael Jarboe
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))

trk = 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 trk = 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 trk = 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 trk = 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 trk = 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 trk = 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 trk = 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 trk = 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 trk = 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 trk = 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 trk = 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 trk = 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))

trk = 0 0 0 0 0 0 0 0 0 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 0 trk = 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))

trk = 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 trk = 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1