Page 1 of 1

??? Undefined function or variable 'M_'.

PostPosted: Sat Sep 06, 2014 8:50 am
by zhuzixiang
Dear all,
I wrote a mod for my housing heterogenous DSGE model.
When running para_est.mod, I met a problem about the order "steady;"
The command window showed
//
hR_h_bar =

0.5230


nO_bar =

0.8566


cO_c_bar =

1.1638


cR_c_bar =

0.3448

??? Undefined function or variable 'M_'.

Error in ==> para_est at 412
oo_.dr.eigval = check(M_,options_,oo_);

Error in ==> dynare at 180
evalin('base',fname) ;
//
My dynare version is 4.4.2 and matlab version is 7.10.0.
The "check;" show the linear equation rank condition is verified.
I tried a lot of modification but no use.
Can you fix it?
Thanks

Re: ??? Undefined function or variable 'M_'.

PostPosted: Sat Sep 06, 2014 12:39 pm
by jpfeifer
Strange. Your file runs on my machine without problems. Try reinstalling Dynare.

Re: ??? Undefined function or variable 'M_'.

PostPosted: Sun Sep 07, 2014 3:05 pm
by zhuzixiang
jpfeifer wrote:Strange. Your file runs on my machine without problems. Try reinstalling Dynare.


Thanks Pro. Jpfeifer.
I reinstall my Dynare several times and tried several times. But the problem still exist.
Why is the function or variable 'M_' undefined? Is it because some parameters or variables are naming the wrong way? For example, 'alpha' should be named as 'alphha' in case some variables may be overwritten by Matlab built-in function or order.

Re: ??? Undefined function or variable 'M_'.

PostPosted: Sun Sep 07, 2014 3:29 pm
by zhuzixiang
zhuzixiang wrote:
jpfeifer wrote:Strange. Your file runs on my machine without problems. Try reinstalling Dynare.


Thanks Pro. Jpfeifer.
I reinstall my Dynare several times and tried several times. But the problem still exist.
Why is the function or variable 'M_' undefined? Is it because some parameters or variables are naming the wrong way? For example, 'alpha' should be named as 'alphha' in case some variables may be overwritten by Matlab built-in function or order.


Thanks Pro. Jpfeifer!
When I put the para_est.mod in another empty file, then it works. The problem results from that in the current folder path there's a steady.m-file written by myself. When I remove this m-file, then it work.