plot_shock_decomposition: filter out other forbidden characters (parentheses and dot) for field name

mr#2067
Marco Ratto 2022-01-25 10:34:27 +01:00 committed by Johannes Pfeifer
parent 61632ef28f
commit 16bc2b3e5e
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ options.nobs=mydata.nobs;
label = mydata.shock_group.label;
label = strrep(label,' ','_');
label = strrep(label,'-','_');
label = strrep(label,'(','');
label = strrep(label,')','');
label = strrep(label,'.','');
shocks = mydata.shock_group.shocks;
options.plot_shock_decomp.fig_name = [mydata.fig_name '. Expand'];
options.plot_shock_decomp.use_shock_groups = label; %[use_shock_groups_old int2str(ic)];