Matrix Math In Matlab For A System Of Equations