📄 test3.m
字号:
clear; clf;
K = 2;
T = 1000;
A = [0.99 0.01;0.02 0.98];
m = [-2 2];
sigma2 = [5 5];
p = [0.2 0.8];
[X,Y] = gen( A, p ,m, sigma2, K, T);
figure(1);
subplot(2,1,1), plot(Y); axis([1 T 0.5 2.5]);
subplot(2,1,2), plot(X);
[alpha,beta,dens] = ForwardBackward( X, A, p, m, sigma2, K, T)
figure(2);
subplot(3,1,1), plot(Y); axis([1 T 0.5 2.5]);
subplot(3,1,2), plot(alpha(:,2)); axis([1 T -0.5 1.5]);
subplot(3,1,3), plot(beta(:,2)); axis([1 T -0.5 1.5]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -