Stoch_simul works but estimation does not

[quote=“jpfeifer”]After estimation, you can find them in oo_.SmoothedShocks and oo_.SmoothedVariables, see the bottom of dynare.org/manual/index_27.html
Regarding the feeding in of shocks, see [Simulate a model using smoothed shocks)[/quote]

I add the code
ex_=[oo_.SmoothedShocks.Median.e_a oo_.SmoothedShocks.Median.e_m]
y0=oo_.dr.ys;
dr=oo_.dr
iorder=1;
y_=simult_(y0,dr,ex_,iorder);’

in the mod.file after the estimation command line, but it reports the following error

??? Reference to non-existent field ‘Median’.

Error in ==> lcmr at 305
ex_=[oo_.SmoothedShocks.Median.e_a oo_.SmoothedShocks.Median.e_m]

Error in ==> dynare at 120
evalin(‘base’,fname) ;

is there any details I misunderstand?