Fix bug introduced in 952139b

The 'hh' variable is now always defined, so we now test if it is empty.
time-shift
Sébastien Villemot 2013-09-13 18:23:24 +02:00
parent 743252a571
commit e123670675
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation
if ~exist('MeanPar','var')
MeanPar = xparam1;
end
if exist('hh','var')
if ~isempty(hh)
CovJump = inv(hh);
else% The covariance matrix is initialized with the prior
% covariance (a diagonal matrix) %%Except for infinite variances ;-)