Represent linear systems with matrix equations