Hello,
I would like to know how to delete the trace of a matrix. I do not find it in the "help".
Thank you
I would like to know how to delete the trace of a matrix. I do not find it in the "help".
Thank you
M= (4,5,3 \ 5,12,7 \25,48,9) N=M-diag(M)
mat N=X-diag(X)
_diag(X,.)
mata: end
*Under Stata matrix define X=(2,2 \ 3,3) matrix list mat N=X-diag(X) *returns conformability error _diag(X,.) *returns unrecognized command: _diag
mata : X=(2,2 \ 3,3) X mat N=X-diag(X) *does not returns error code N _diag(X,.) X end
Comment