doctest fix
space removed
docfixes on matrices in physics module
Merge pull request #2731 from Upabjojr/pat_doc_correction

doctest fix