In that case, you need something like
moments(:,t)=(diag(oo_.var));
var_sz(s,z)=moments(x,t);
In that case, you need something like
moments(:,t)=(diag(oo_.var));
var_sz(s,z)=moments(x,t);
Sorry, what’s x?
The index of the variable you want to look at.