Error using area Too many input arguments

Dear all,
Whenever I estimate the model below I get this error message when Dynare is about to compute the impulse responses. What is wrong? Thanks in advance for the help.

norges_bgg.m (22.3 KB)
norges_data2.m (2.2 KB)
dsge.xls (127.5 KB)

standard deviation of shocks
prior mean post. mean 90% HPD interval prior pstdev

xi_G 30.000 12.3984 9.9467 15.1401 invg 15.0000
xi_pif_f 0.530 0.5224 0.2668 0.8256 invg 0.2500
xi_y 1.500 2.2089 1.8221 2.5442 invg 0.5000
xi_b 16.000 7.1466 5.4936 8.9788 invg 8.0000
xi_r 5.000 2.7745 2.0594 3.3469 invg 2.5000
xi_C_f 90.000 28.5227 23.8391 33.0200 invg 45.0000
xi_rf 40.000 12.7503 9.8823 15.5751 invg 20.0000
u_x 15.000 8.1032 5.9780 10.0605 invg 7.5000
Estimation::mcmc: Posterior (dsge) IRFs…
Error using area
Too many input arguments.

Error in PosteriorIRF_core2 (line 115)
h1 = area(1:options_.irf,HPDIRF(:,2,j,i),‘FaceColor’,[.9 .9
.9],‘BaseValue’,min(HPDIRF(:,1,j,i))); %grey below HPDIsup and minimum of HPDIinf

Error in PosteriorIRF (line 447)
[fout] = PosteriorIRF_core2(localVars,1,M_.exo_nbr,0);

Error in dynare_estimation_1 (line 509)
PosteriorIRF(‘posterior’);

Error in dynare_estimation (line 105)
dynare_estimation_1(var_list,dname);

Error in norges_bgg (line 522)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 235)
evalin(‘base’,fname) ;

It seems there is a naming conflict with the function area. What happens if you type

which area

after the error message?

I receive this message:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error using area
Too many input arguments.

Error in PosteriorIRF_core2 (line 115)
h1 = area(1:options_.irf,HPDIRF(:,2,j,i),‘FaceColor’,[.9 .9
.9],‘BaseValue’,min(HPDIRF(:,1,j,i))); %grey below HPDIsup and minimum of HPDIinf

Error in PosteriorIRF (line 447)
[fout] = PosteriorIRF_core2(localVars,1,M_.exo_nbr,0);

Error in dynare_estimation_1 (line 509)
PosteriorIRF(‘posterior’);

Error in dynare_estimation (line 105)
dynare_estimation_1(var_list,dname);

Error in norges_bgg (line 522)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 235)
evalin(‘base’,fname) ;

which area
L:\Documents\MATLAB\area.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

My dynare files are located in this address:
C:\dynare

The file at

is not the Matlab file for the area plot. Remove it and your code should work.

It worked! :slight_smile: