Commit daa80571 authored by michel's avatar michel
Browse files

v4: new function set_param_value to set parameter values. Usefull when mixing Dynare and Matlab

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1239 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 6218d28b
function set_param_value(pname,value)
global M_
i = strmatch(pname,M_.param_names,'exact');
if isempty(i)
error(['Parameter name ' pname ' doesn''t exist'])
end
M_.params(i) = value;
assignin('base',pname,value);
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment