# ? Undefined function or variable 'M\_'

**URL:** <https://forum.dynare.org/t/undefined-function-or-variable-m-/4140>\
**Category:** Dynare help (legacy posts)\
**Created:** [6 September 2014 08:50 UTC](https://forum.dynare.org/t/undefined-function-or-variable-m-/4140 "2014-09-06T08:50:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [6 September 2014 08:50 UTC](https://forum.dynare.org/t/undefined-function-or-variable-m-/4140/1 "2014-09-06T08:50:42Z")

</div>

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  
[para\_est.mod](https://forum.dynare.org/uploads/default/original/2X/b/b3b169bb66e74871293d3bd1e5c81e30fb3206a4.mod) (13.3 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [6 September 2014 12:39 UTC](https://forum.dynare.org/t/undefined-function-or-variable-m-/4140/2 "2014-09-06T12:39:14Z")

</div>

Strange. Your file runs on my machine without problems. Try reinstalling Dynare.

---

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [7 September 2014 15:05 UTC](https://forum.dynare.org/t/undefined-function-or-variable-m-/4140/3 "2014-09-07T15:05:40Z")

</div>

> [@jpfeifer](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![zhuzixiang](https://forum.dynare.org/user_avatar/forum.dynare.org/zhuzixiang/32/20461_2.png) [@zhuzixiang](https://forum.dynare.org/u/zhuzixiang)\
**Post date:** [7 September 2014 15:29 UTC](https://forum.dynare.org/t/undefined-function-or-variable-m-/4140/4 "2014-09-07T15:29:15Z")

</div>

[quote=“zhuzixiang”]

> [@jpfeifer](#):
>
> 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.[/quote]

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.
