??? Undefined function or variable 'M_'.

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

??? Undefined function or variable 'M_'.

Postby zhuzixiang » Sat Sep 06, 2014 8:50 am

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
Attachments
para_est.mod
(13.34 KiB) Downloaded 97 times
zhuzixiang
 
Posts: 12
Joined: Sat Sep 06, 2014 3:36 am

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

Postby jpfeifer » Sat Sep 06, 2014 12:39 pm

Strange. Your file runs on my machine without problems. Try reinstalling Dynare.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

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

Postby zhuzixiang » Sun Sep 07, 2014 3:05 pm

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.
zhuzixiang
 
Posts: 12
Joined: Sat Sep 06, 2014 3:36 am

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

Postby zhuzixiang » Sun Sep 07, 2014 3:29 pm

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.
zhuzixiang
 
Posts: 12
Joined: Sat Sep 06, 2014 3:36 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron