diff --git a/matlab/+mom/graph_comparison_irfs.m b/matlab/+mom/graph_comparison_irfs.m index 97fab5f03d8a658491d619bf9525b6756f838a4e..54aab693815cdc09c0db65df6aabcc208715f7bf 100644 --- a/matlab/+mom/graph_comparison_irfs.m +++ b/matlab/+mom/graph_comparison_irfs.m @@ -54,7 +54,7 @@ function graph_comparison_irfs(matched_irfs,irf_model_varobs,varobs_id,irf_horiz graph_directory_name = CheckPath('graphs',dname); latex_directory_name = CheckPath('latex',dname); if TeX && any(strcmp('eps',cellstr(graph_format))) - fid_TeX = fopen([latex_directory_name filesep fname '_irf_matching_plot.tex'],'w'); + fid_TeX = fopen([latex_directory_name '/' fname '_irf_matching_plot.tex'],'w'); fprintf(fid_TeX,'%% TeX eps-loader file generated by mom.run.m (Dynare).\n'); fprintf(fid_TeX,['%% ' datestr(now,0) '\n']); fprintf(fid_TeX,' \n'); @@ -105,7 +105,7 @@ for jexo = unique_shock_entries' if TeX && any(strcmp('eps',cellstr(graph_format))) fprintf(fid_TeX,'\\begin{figure}[H]\n'); fprintf(fid_TeX,'\\centering \n'); - fprintf(fid_TeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_matched_irf_%s%s}\n',figures_textwidth*min(plt/nc,1),[graph_directory_name filesep fname],exo_names{jexo},int2str(fig)); + fprintf(fid_TeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_matched_irf_%s%s}\n',figures_textwidth*min(plt/nc,1),[graph_directory_name '/' fname],exo_names{jexo},int2str(fig)); if relative_irf fprintf(fid_TeX,'\\caption{Relative impulse response functions (orthogonalized shock to $%s$).}', exo_names_tex{jexo}); else