Subsystem codes \(Q=A\otimes B\) are a generalization of noiseless subsystems, decoherence-free subspaces, and quantum error-correcting codes. In this paper, we provide an effective method for constructing subsystem codes via matrix-product codes. In addition, the lengths, dimensions of subsystem A and the co-subsystem B, and minimum distances of our subsystem codes \(Q=A\otimes B\) are easily calculated.