external function error input arguments

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

external function error input arguments

Postby debrah » Wed Feb 01, 2012 11:16 pm

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.
debrah
 
Posts: 1
Joined: Wed Feb 01, 2012 11:03 pm

Re: external function error input arguments

Postby HoutanBastani » Mon Feb 06, 2012 10:46 am

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.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests