Update persons_changed_state.m

Doing it the MatLab way with matrix operations.
Updated comments to reflect that change from 0 to 1 is represented by -1
and from 1 to 0 is represented by 1.