Combing MATLAB and Macro-Expressions

Hi,

Is it possible to parse the value of a MATLAB variable through into a macro-expression in DYNARE? I’m trying to do something like the following:

mfile.m

global MATLABVALUE

for i = [1:10]
MATLABVALUE = i
dynare modfile.mod
end;

modfile.mod
@#define value = MATLABVALUE

model;
etc

Thank you for your help,

Tim Jackson

Please have a look at [Loop over certain antizipation horizons)