If I may ask, what is the number of rows in oo_.endo_simul?
MATLAB/Octave variable: oo_.endo_simul
This variable stores the result of a deterministic simulation (computed by
perfect_foresight_solver or simul) or of a stochastic simulation (computed by stoch_simul
with the periods option or by extended_path). The variables are arranged row by row, in order of declaration (as in M_.endo_names). Note that this variable also contains initial and terminal conditions, so it has more columns than the value of periods option.
The simulations in oo_.endo_simul will always contain all endogenous variables including auxiliary variables. Thus, the size corresponds to M_.endo_names.