# HG changeset patch # User Chris Cannam # Date 1412090580 -3600 # Node ID 2d5f5020552777db2a08d3da3155933aa62e5887 # Parent 4952897aa6d4518536c9eb356532ec9ac795dbd3 Escape the trailing backslash as well diff -r 4952897aa6d4 -r 2d5f50205527 simulateBinauralSignals.m --- a/simulateBinauralSignals.m Tue Sep 30 12:40:40 2014 +0100 +++ b/simulateBinauralSignals.m Tue Sep 30 16:23:00 2014 +0100 @@ -406,10 +406,10 @@ fprintf(fid,['\n RHOAIR = ' num2str(geom.Rhoair) ';']); fprintf(fid,'\n SHOWTEXT = 2;'); fprintf(fid,'\n SUPPRESSFILES = 0;'); -temp = strrep(outdir,'\','\\'); -fprintf(fid,['\n Filepath=''' temp filesep ''';']); +temp = strrep([outdir filesep],'\','\\'); +fprintf(fid,['\n Filepath=''' temp ''';']); fprintf(fid,['\n Filestem=''' temp_filename ''';']); -fprintf(fid,['\n CADfile=''' temp filesep cad_filename ''';']); +fprintf(fid,['\n CADfile=''' temp cad_filename ''';']); fprintf(fid,'\n open_or_closed_model = ''open'';'); fprintf(fid,'\n int_or_ext_model = ''ext'';'); fprintf(fid,'\n EDcalcmethod = ''n'';');