Spaces of ultradifferentiable functions are subclasses of smooth functions with certain growth conditions on all their derivatives. In the literature two different approaches are considered, either using a weight sequence or using a weight function. We present a generalization, namely classes defined by weight matrices, and characterize the quasianalyticity and several important stability properites for those classes.