Title: Electric machine analysis using matrices