remove unnecessary eval statements
parent
c5ac16bb99
commit
f118970736
|
@ -239,9 +239,7 @@ while fpar<B
|
||||||
stock_irf_bvardsge(:,:,:,IRUN) = reshape(tmp_dsgevar,options_.irf,dataset_.vobs,M_.exo_nbr);
|
stock_irf_bvardsge(:,:,:,IRUN) = reshape(tmp_dsgevar,options_.irf,dataset_.vobs,M_.exo_nbr);
|
||||||
else
|
else
|
||||||
stock_irf_bvardsge(:,:,:,IRUN) = reshape(tmp_dsgevar,options_.irf,dataset_.vobs,M_.exo_nbr);
|
stock_irf_bvardsge(:,:,:,IRUN) = reshape(tmp_dsgevar,options_.irf,dataset_.vobs,M_.exo_nbr);
|
||||||
instr = [MhDirectoryName '/' M_.fname '_irf_bvardsge' ...
|
save([MhDirectoryName '/' M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat'], 'stock_irf_bvardsge');
|
||||||
int2str(NumberOfIRFfiles_dsgevar) '.mat stock_irf_bvardsge;'];
|
|
||||||
eval(['save ' instr]);
|
|
||||||
if RemoteFlag==1
|
if RemoteFlag==1
|
||||||
OutputFileName_bvardsge = [OutputFileName_bvardsge; {[MhDirectoryName filesep], [M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat']}];
|
OutputFileName_bvardsge = [OutputFileName_bvardsge; {[MhDirectoryName filesep], [M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat']}];
|
||||||
end
|
end
|
||||||
|
@ -255,9 +253,7 @@ while fpar<B
|
||||||
stock_irf_dsge = stock_irf_dsge(:,:,:,1:irun);
|
stock_irf_dsge = stock_irf_dsge(:,:,:,1:irun);
|
||||||
if MAX_nirfs_dsgevar && (fpar == B || IRUN == B)
|
if MAX_nirfs_dsgevar && (fpar == B || IRUN == B)
|
||||||
stock_irf_bvardsge = stock_irf_bvardsge(:,:,:,1:IRUN);
|
stock_irf_bvardsge = stock_irf_bvardsge(:,:,:,1:IRUN);
|
||||||
instr = [MhDirectoryName '/' M_.fname '_irf_bvardsge' ...
|
save([MhDirectoryName '/' M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat'], 'stock_irf_bvardsge');
|
||||||
int2str(NumberOfIRFfiles_dsgevar) '.mat stock_irf_bvardsge;'];
|
|
||||||
eval(['save ' instr]);
|
|
||||||
NumberOfIRFfiles_dsgevar = NumberOfIRFfiles_dsgevar+1;
|
NumberOfIRFfiles_dsgevar = NumberOfIRFfiles_dsgevar+1;
|
||||||
if RemoteFlag==1
|
if RemoteFlag==1
|
||||||
OutputFileName_bvardsge = [OutputFileName_bvardsge; {[MhDirectoryName filesep], [M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat']}];
|
OutputFileName_bvardsge = [OutputFileName_bvardsge; {[MhDirectoryName filesep], [M_.fname '_irf_bvardsge' int2str(NumberOfIRFfiles_dsgevar) '.mat']}];
|
||||||
|
|
|
@ -248,8 +248,7 @@ if options_.irf
|
||||||
for j = 1:nvar
|
for j = 1:nvar
|
||||||
assignin('base',[M_.endo_names{i_var(j)} '_' M_.exo_names{i}],...
|
assignin('base',[M_.endo_names{i_var(j)} '_' M_.exo_names{i}],...
|
||||||
y(i_var(j),:)');
|
y(i_var(j),:)');
|
||||||
eval(['oo_.irfs.' M_.endo_names{i_var(j)} '_' ...
|
oo_.irfs.([M_.endo_names{i_var(j)} '_' M_.exo_names{i}]) = y(i_var(j),:);
|
||||||
M_.exo_names{i} ' = y(i_var(j),:);']);
|
|
||||||
if max(abs(y(i_var(j),:))) >= options_.impulse_responses.plot_threshold
|
if max(abs(y(i_var(j),:))) >= options_.impulse_responses.plot_threshold
|
||||||
irfs = cat(1,irfs,y(i_var(j),:));
|
irfs = cat(1,irfs,y(i_var(j),:));
|
||||||
if isempty(mylist)
|
if isempty(mylist)
|
||||||
|
|
Loading…
Reference in New Issue