Fix Matrix2 doc example.

Fixes #2043 

I searched the rest of the examples and nowhere else had a problem.