Add missing deblank to conditional_variance_decomposition_mc_analysis.m which crashes otherwise if variables have different name length

time-shift
Johannes Pfeifer 2016-06-18 14:22:41 +02:00 committed by Stéphane Adjemian (Hermes)
parent de383a263e
commit 9a3414f652
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ if isempty(exogenous_variable_index)
return
end
name_1 = var_list(endogenous_variable_index,:);
name_2 = exo;
name_1 = deblank(var_list(endogenous_variable_index,:));
name_2 = deblank(exo);
name = [ name_1 '.' name_2 ];
if isfield(oo_, [ TYPE 'TheoreticalMoments' ])