plot kalman smoother output vectors with confidence interval!!!!
2 次查看(过去 30 天)
显示 更早的评论
i have a smoothed vector theta(16,T), where T refere to nomber of years . & i would like to plot a row from this vector using a confidence interval of 95%.. my state space model is :
%% yt= Zt*theta(t) + e(t)
%% theta(t)= theta(t-1) + v(t)
how can i visualize confidence interval with my states vectors in a plot
thx for help :)
0 个评论
回答(1 个)
John Petersen
2012-11-21
upper = theta*1.05;
lower = theta*0.95;
plot(t,lower,t,theta,t,upper);
2 个评论
John Petersen
2012-11-28
You can't use '-' as a character in a variable name. Matlab sees it as a minus sign. Also keep in mind that t, theta, and var_cov must be the same dimension.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!