explicit mat extension with save (octave compatibility)
parent
87abc9041c
commit
a016d3c521
|
@ -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
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue