SUR Gibbs: do not try to create plot under Octave and MATLAB < R2014b

The histogram() function does not exist there.
time-shift
Sébastien Villemot 2021-01-19 16:22:28 +01:00
parent c9a6637ca5
commit 57326339e9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function ds = surgibbs(ds, param_names, beta0, A, ndraws, discarddraws, thin, eq
% Combination of Direct Monte Carlo and Importance Sampling Techniques.
% Bayesian Analysis Volume 5, Number 1, pp. 65-96.
% Copyright (C) 2017-2020 Dynare Team
% Copyright (C) 2017-2021 Dynare Team
%
% This file is part of Dynare.
%
@ -217,7 +217,8 @@ end
% Plot
%
if ~options_.nograph
% The histogram() function is not implemented in Octave and in MATLAB < R2014b
if ~options_.nograph && ~isoctave && ~matlab_ver_less_than('8.4')
figure
nrows = 5;
ncols = floor(nparams/nrows);