矩阵等式 matrix identity(二)
矩阵等式 matrix identity(numpy仿真)矩阵的迹(trace)矩阵的迹等于其对角元素之和;function t = trace(A)if ~ismatrix(A) || size(A,1)~=size(A,2) error(message('MATLAB:trace:square'));endt = full(sum(diag(A)));基本性质: ∥A∥2F=tr(A