Cody

# Problem 1341. Track Logic

Solution 218697

Submitted on 18 Mar 2013
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   Fail
%% 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))

```Error: Output argument "trk" (and maybe others) not assigned during call to "/users/msssystem15/TrkState.m>TrkState". ```

2   Fail
%% 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))

```Error: Output argument "trk" (and maybe others) not assigned during call to "/users/msssystem15/TrkState.m>TrkState". ```

3   Fail
%% 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))

```Error: Output argument "trk" (and maybe others) not assigned during call to "/users/msssystem15/TrkState.m>TrkState". ```