A method is presented for calculating a matrix spectrum with a given set of eigenvalues. It can be used to build systems with different spectrums with the aim of choosing desired alternative. It enables a practical implementation of control algorithms without resorting to transformation of variables.