Commit 1a8db86c authored by michel's avatar michel
Browse files

v4 new function

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1647 ac1d8469-bf42-47a9-8791-bf33cf982152
parent cd1918ca
function x = get_param_by_name(pname)
% function x = get_param_by_name(pname)
% returns the value of a parameter identified by its name
%
% INPUTS:
% pname: parameter name
%
% OUTPUTS
% x: parameter value
%
% SPECIAL REQUIREMENTS
% none
%
% part of DYNARE, copyright Dynare Team (2006-2008)
% Gnu Public License
global M_
i = strmatch(pname,M_.param_names,'exact');
if isempty(i)
error(['Can''t find parameter ' pname])
end
x = M_.params(i);
\ 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