Page 1 of 1

external function error input arguments

PostPosted: Wed Feb 01, 2012 11:16 pm
by debrah
Hello there,

I have a namefunction.m file
Code: Select all
function output = namefunction(arg1, arg2)
...;
end

In the .mod file I added before the model bloc
Code: Select all
external_function(name = namefunction, nargs = 2);

One of the endogenous model variables is based on the external function:
Code: Select all
alpha = (alpha(-1))*namefunction(arg1,arg2);

As arg1, arg2 I plugged in 0.9 and 0.1, alternatively I defined parameters with those values.
I get error messages that an INT_NUMBER, PLUS or MINUS was expected as input argument in the external function, wrong is NAME and FLOAT_NUMBER.
Dynare version 4.1.3, ML 7.10.0(R2010a).
Many thanks for helping.

Re: external function error input arguments

PostPosted: Mon Feb 06, 2012 10:46 am
by HoutanBastani
Please update to the latest version of Dynare. If the problem persists, respond to this message and post your mod file and any other files necessary to run it.