Fixed bug with bvar_forecast under Octave (mkdir doesn't have the implicit "-p" option)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2800 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-07-01 13:17:44 +00:00
parent 84cb23d172
commit 5b06ad8ae5
1 changed files with 4 additions and 1 deletions

View File

@ -155,7 +155,10 @@ function bvar_forecast(nlags)
DirectoryName = [ M_.fname '/bvar_forecast' ];
if ~isdir(DirectoryName)
mkdir('.',DirectoryName);
if ~isdir(M_.fname)
mkdir(M_.fname);
end
mkdir(DirectoryName);
end
save([ DirectoryName '/simulations.mat'], 'sims_no_shock', 'sims_with_shocks');