Skip to content
Snippets Groups Projects
Commit a40807ca authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

plot_priors.m: Allow for optional title

parent e14e9641
Branches
Tags
1 merge request!1750First implementation of moment estimation
function plot_priors(bayestopt_,M_,estim_params_,options_) function plot_priors(bayestopt_,M_,estim_params_,options_,optional_title)
% function plot_priors % function plot_priors
% plots prior density % plots prior density
% %
% INPUTS % INPUTS
% o bayestopt_ [structure] % o bayestopt_ [structure]
% o M_ [structure] % o M_ [structure]
% o options_ [structure] % o estim_params_ [structure]
% % o options_ [structure]
% o optional_title [string]
% OUTPUTS % OUTPUTS
% None % None
% %
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% None % None
% Copyright (C) 2004-2017 Dynare Team % Copyright (C) 2004-2020 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -31,8 +33,11 @@ function plot_priors(bayestopt_,M_,estim_params_,options_) ...@@ -31,8 +33,11 @@ function plot_priors(bayestopt_,M_,estim_params_,options_)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
TeX = options_.TeX; TeX = options_.TeX;
if nargin<5
figurename = 'Priors'; figurename = 'Priors';
else
figurename = optional_title;
end
npar = length(bayestopt_.p1); npar = length(bayestopt_.p1);
[nbplt,nr,nc,lr,lc,nstar] = pltorg(npar); [nbplt,nr,nc,lr,lc,nstar] = pltorg(npar);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment