# Error in a DSGE model

**URL:** <https://forum.dynare.org/t/error-in-a-dsge-model/256>\
**Category:** Dynare help (legacy posts)\
**Created:** [27 February 2007 15:22 UTC](https://forum.dynare.org/t/error-in-a-dsge-model/256 "2007-02-27T15:22:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmacit](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/e0b2c6/32.png) [@fmacit](https://forum.dynare.org/u/fmacit)\
**Post date:** [27 February 2007 15:22 UTC](https://forum.dynare.org/t/error-in-a-dsge-model/256/1 "2007-02-27T15:22:49Z")

</div>

Hi,  
I am trying to solve a DSGE model and I run a couple of different versions of the model and I always got the errors that I attached below. I don`t understand where those errors come from. I really appreciate if you could help me on that.

??? In an assignment A(I) = B, the number of elements in B and  
I must be the same.

Error in ==\> C:\dynare\_v3\examples\code\_fff.m  
On line 42 ==\> z(28) = exp(y(35)) -(eta\*(exp(y(37)+y(1))_exp(y(5))^(alfah-1)+kappag_exp( …

Error in ==\> c:\dynare\_v3\matlab\dynare\_solve.m  
On line 41 ==\> fvec = feval(func,x,varargin{:});

Error in ==\> c:\dynare\_v3\matlab\steady\_.m  
On line 23 ==\> [ys\_,check] = dynare\_solve([fname\_ ‘\_fff’],x);

Error in ==\> c:\dynare\_v3\matlab\steady.m  
On line 7 ==\> steady\_;

Error in ==\> C:\dynare\_v3\examples\code.m  
On line 206 ==\> steady(0);

Error in ==\> c:\dynare\_v3\matlab\dynare.m  
On line 26 ==\> evalin(‘base’,fname) ;

---

<div class="post-metadata">

**Author:** ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)\
**Post date:** [16 March 2007 21:03 UTC](https://forum.dynare.org/t/error-in-a-dsge-model/256/2 "2007-03-16T21:03:04Z")

</div>

one of the parameters in the equation corresponding to line 42 in code\_fff is misspelled or doesn’t have a value

Best

Michel
