SUR Gibbs: do not try to create plot under Octave and MATLAB < R2014b
The histogram() function does not exist there.time-shift
parent
c9a6637ca5
commit
57326339e9
|
@ -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.
|
% Combination of Direct Monte Carlo and Importance Sampling Techniques.
|
||||||
% Bayesian Analysis Volume 5, Number 1, pp. 65-96.
|
% 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.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -217,7 +217,8 @@ end
|
||||||
% Plot
|
% 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
|
figure
|
||||||
nrows = 5;
|
nrows = 5;
|
||||||
ncols = floor(nparams/nrows);
|
ncols = floor(nparams/nrows);
|
||||||
|
|
Loading…
Reference in New Issue