>> for j = 1:Num
for i = 1:12^N)
A = (i-1)*ones(Num,2^N_in);
E = D(j, - A(j,;
N(i) = 2^N_in - nnz(E);
dnl(j,i) = N(i)/2^M - 1;
inl(j,i) = sum(dnl(j,(1:i))); % 针对矩阵D中的第j行进行处理,计算其DNL和INL
end
end % 针对矩阵D中的Num次运算结果,分别计算DNL和INL
??? Error using ==> mpower
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.