# Could this be a bug?

**URL:** <https://forum.dynare.org/t/could-this-be-a-bug/1039>\
**Category:** Dynare contributions and examples\
**Created:** [30 April 2009 08:57 UTC](https://forum.dynare.org/t/could-this-be-a-bug/1039 "2009-04-30T08:57:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olayenidynare](https://forum.dynare.org/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@olayenidynare](https://forum.dynare.org/u/olayenidynare)\
**Post date:** [30 April 2009 08:57 UTC](https://forum.dynare.org/t/could-this-be-a-bug/1039/1 "2009-04-30T08:57:46Z")

</div>

Dear all,  
While trying to simulate the attached file the following error message pops up. What could be wrong? Does it means Matlab files cannot be called from within DYNARE? The error seems to point to quad.m in Matlab. Please help me

Configuring Dynare …  
[mex] Generalized QZ.  
[mex] Sylvester equation solution.  
[mex] Kronecker products.  
[mex] Sparse kronecker products.

Starting Dynare …  
Starting preprocessing of the model file …  
ERROR: KrauseLubik.mod:31.10: character unrecognized by lexer

??? Error using ==\> dynare at 96  
DYNARE: preprocessing failed

Thanks  
[KrauseLubik.mod](https://forum.dynare.org/uploads/default/original/1X/f96b228df2fca77e6dc7eb63af63a47b95280d12.mod) (4.44 KB)

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [14 May 2009 09:37 UTC](https://forum.dynare.org/t/could-this-be-a-bug/1039/2 "2009-05-14T09:37:21Z")

</div>

Hi,

The problem is caused by the use of the symbol @ in a dynare statement (where the parameter Hauc is defined). This is Ok with dynare version 3 but not with dynare version 4, where this symbol is used for the macroprocessor (see [here](http://www.dynare.org/DynareWiki/MacroLanguage)). You are only allowed to use @ in a non dynare statement, that is a line beginning by anything except a declared parameter, a declared variable or a dynare keyword. For dynare v4 the workaround is to replace the Hauc line by

```auto
function_handle = @afa ;
Hauc = quad(function_handle,at,8);
```

The first line is not a dynare statement so you can use the @ symbol. Obviously you need the afa.m.

You should also look at this [post](https://forum.dynare.org/t/indeterminacy-when-replicating-krause-lubik-code/992/4).

Best, Stéphane.
