Matrix Representation of Maxwell Equations