explicit mat extension with save (octave compatibility)

time-shift
Marco Ratto 2011-04-06 13:08:22 +02:00
parent 87abc9041c
commit a016d3c521
2 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ if info
old_mhblck = mhblck;
end
clear('x2')
save([fname '_posterior_draws1'],'pdraws')
save([fname '_posterior_draws1.mat'],'pdraws')
else% The posterior draws are saved in xx files.
NumberOfDrawsPerFile = fix(MAX_mega_bytes/drawsize);
NumberOfFiles = ceil(SampleSize*drawsize/MAX_mega_bytes);
@ -145,7 +145,7 @@ if info
old_mhblck = mhblck;
if fnum < NumberOfFiles && linee == NumberOfDrawsPerFile
linee = 0;
save([fname '_posterior_draws' num2str(fnum)],'pdraws')
save([fname '_posterior_draws' num2str(fnum) '.mat'],'pdraws')
fnum = fnum+1;
if fnum < NumberOfFiles
pdraws = cell(NumberOfDrawsPerFile,info);
@ -154,6 +154,6 @@ if info
end
end
end
save([fname '_posterior_draws' num2str(fnum)],'pdraws')
save([fname '_posterior_draws' num2str(fnum) '.mat'],'pdraws')
end
end

View File

@ -238,7 +238,7 @@ elseif options.optimization_routine==0% Compute the variance of the SMM estimato
elseif options.optimization_routine<0
T = -options.optimization_routine;% length of the simulated time series.
time_series = extended_path(oo_.steady_state,T,1);
save time_series;
save time_series.mat;
end