Matrix rotator