Spectrum Matrix by DP