ldltest.m

来自「kalman filter update equations implement」· M 代码 · 共 25 行

M
25
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ldltest.m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% test file for ldldown.m, ldlup.m, and (called by these) ldlrk1.mclear;n=5;% generate random unit lower triangular matrixL=tril(rand(n));L=L-diag(diag(L))+eye(n);% random columnd=rand(n,1);for j=1:n,  disp('***** downdate *****')  [L,d]=ldldown(L,d,j);  disp('***** update *****')  g=rand(n,1);  g(j)=1; % encourage definiteness of update  [L,d,p]=ldlup(L,d,j,g);  end;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?