diff --git a/matlab/+bvar/density.m b/matlab/+bvar/density.m index 9e1a219db796c4346d07e8052cbf89f0b70d4bc2..f24a7e4bba50f39dfe1960f38dfd7301f505fe8f 100644 --- a/matlab/+bvar/density.m +++ b/matlab/+bvar/density.m @@ -75,8 +75,8 @@ function w = matrictint(S, df, XXi) k=size(XXi,1); ny=size(S,1); -cx = chol(XXi); -cs = chol(S); +[cx,p] = chol(XXi); %second output required to prevent error +[cs,p] = chol(S); %second output required to prevent error if any(diag(cx)<100*eps) error('singular XXi') diff --git a/matlab/dynare.m b/matlab/dynare.m index 7cddb7abd020a0034ab5fd252b5617ca1df512aa..2308ad8e3302c910e090d2d5958c721ecfcf44df 100644 --- a/matlab/dynare.m +++ b/matlab/dynare.m @@ -240,7 +240,7 @@ end % https://forum.dynare.org/t/issue-with-dynare-preprocessor-4-6-1/15448/1 if ~fast if ispc && ~isoctave && exist(['+',fname(1:end-4)],'dir') - rmdir(['+', fname(1:end-4)],'s'); + [~,~]=rmdir(['+', fname(1:end-4)],'s'); % output required to suppress triggering error end end diff --git a/matlab/parallel/masterParallel.m b/matlab/parallel/masterParallel.m index f06b5e2416cff75b9fc9f32216bd172820ccc8ea..f421d05cdc13c23ddcb4e7452a208b6ddc5c4fc6 100644 --- a/matlab/parallel/masterParallel.m +++ b/matlab/parallel/masterParallel.m @@ -893,7 +893,7 @@ switch Strategy end if isempty(dir('dynareParallelLogFiles')) - rmdir('dynareParallelLogFiles'); + [~,~]=rmdir('dynareParallelLogFiles'); %use outputs to not trigger hard error mkdir('dynareParallelLogFiles'); end try @@ -911,7 +911,7 @@ switch Strategy delete('temp_input.mat') if newInstance if isempty(dir('dynareParallelLogFiles')) - rmdir('dynareParallelLogFiles'); + [~,~]=rmdir('dynareParallelLogFiles'); %use outputs to not trigger hard error mkdir('dynareParallelLogFiles'); end end