External function;


I am using external function in dynare. However, I want dynare to take two values like:

[x,w] = function(n,a,b);

Is there a way to get two values?
Here, I have attached .mod and external function .m.

qnwtrap.m (1.5 KB) quad.mod (245 Bytes)

No, there is not. You need to write two functions, one providing the first output argument and one the second one.

1 Like