Represent linear systems with matrices