Pātuhitia tēnei: Matrix theory and applications with Matlab