The first line in this piece of code is :
moments=compute_model_moments(dr,M_,options,_)
Should it not be moments=compute_model_moments(dr,M_,options_)?
If I use Matlab 2007a, Matlab will give me an error message. If I use Matlab 2008b, Matlab seems stuck somewhere. I am runing the Smets and Wouters' code for their AER paper.