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.