Combing MATLAB and Macro-Expressions

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.

Combing MATLAB and Macro-Expressions

Postby timjackson » Fri Apr 22, 2016 11:46 pm

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
timjackson
 
Posts: 7
Joined: Tue Mar 08, 2016 3:29 pm

Re: Combing MATLAB and Macro-Expressions

Postby jpfeifer » Mon Apr 25, 2016 8:11 am

------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests