Mercurial > hg > human-echolocation
changeset 18:2d5f50205527 jabuilder_int tip
Escape the trailing backslash as well
author | Chris Cannam |
---|---|
date | Tue, 30 Sep 2014 16:23:00 +0100 |
parents | 4952897aa6d4 |
children | |
files | simulateBinauralSignals.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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'';');