This might be very basic so I apologize in advace.
I usually solve a system of equations via
y = ( A\'*A + eye(size(A) ) \\ ( A\' * x ) ;