# HG changeset patch # User Timos Papadopoulos # Date 1384959603 0 # Node ID 4c1027c1a5539ee630ba8906fc5fc9d12c6c44b7 # Parent 4b1413bc02058038cbbbf757f84887aff15c2c36 corrected path definitions to work both in windows and mac diff -r 4b1413bc0205 -r 4c1027c1a553 simulate_echo.m --- a/simulate_echo.m Tue Nov 19 17:32:14 2013 +0000 +++ b/simulate_echo.m Wed Nov 20 15:00:03 2013 +0000 @@ -126,9 +126,9 @@ params.board_size_y = .02; params.board_size_z = .55; -params.board_azim = mod(90+[-45 -17 0 17 45],360)*pi/180; +params.board_azim = mod(90+[-17 0 17],360)*pi/180; params.board_elev = 0*pi/180; -params.board_dist = [0.9 1.5 3 6]; +params.board_dist = [0.9 3]; % % params.board_azim = mod(90+[-17 17],360)*pi/180; % corresponds to a board 17degress to the right and a board 17 % degrees to the left. The elements of the vector ([-17 17] in this example) must be in the range (-180,180] and are @@ -391,9 +391,10 @@ fprintf(fid,['\n RHOAIR = ' num2str(geom.Rhoair) ';']); fprintf(fid,'\n SHOWTEXT = 0;'); fprintf(fid,'\n SUPPRESSFILES = 0;'); -fprintf(fid,'\n Filepath=['''''''' cd '''''''' ''\\''];'); +temp = strrep([cd filesep],'\','\\'); +fprintf(fid,['\n Filepath=''''''' temp ''''''';']); fprintf(fid,['\n Filestem=''' temp_filename ''';']); -fprintf(fid,['\n CADfile=[cd ''' filesep temp_filename '.cad''];']); +fprintf(fid,['\n CADfile=''' temp temp_filename '.cad'';']); fprintf(fid,'\n open_or_closed_model = ''open'';'); fprintf(fid,'\n int_or_ext_model = ''ext'';'); fprintf(fid,'\n EDcalcmethod = ''n'';');