matlab 源码阅读

源码面前,了无秘密。

You can read and edit the source code for M-file functions that ship with MATLAB; the only way to read and edit the built-in functions like FFT is to get a job with The MathWorks. We don’t distribute the built-in source code for MATLAB.

trace:矩阵的迹

function t = trace(A) if ~ismatrix(A) || size(A,1)~=size(A,2) error(message('MATLAB:trace:square'));
end
t = full(sum(diag(A)));

你可能感兴趣的:(matlab 源码阅读)