ex11-2_hinfex1a.m

来自「《Optimal State Estimation - Kalman, H In」· M 代码 · 共 22 行

M
22
字号
function HinfEx1a

th = 0 : .01 : .99;
%th = 5 : .01 : 10;

if 1 == 1
    p1 = (1-th+sqrt((th-1).*(th-5)))/2./(1-th);
    p2 = (1-th-sqrt((th-1).*(th-5)))/2./(1-th);
    close all;
    plot(th, p1, 'r'); hold;
    plot(th, p2, 'b');
    return;
end

Bound1 = 2 * (1 - th) ./ ( 1 - th + sqrt( (th - 1) .* (th - 5) ) );
Bound2 = 2 * (1 - th) ./ ( 1 - th - sqrt( (th - 1) .* (th - 5) ) );
Limit = th - 1;

close all;
plot(th, Limit, 'k'); hold;
plot(th, Bound1, 'r');
plot(th, Bound2, 'b');

⌨️ 快捷键说明

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