Mercurial > hg > human-echolocation
changeset 3:4c1027c1a553
corrected path definitions to work both in windows and mac
author | Timos Papadopoulos <tp@isvr.soton.ac.uk> |
---|---|
date | Wed, 20 Nov 2013 15:00:03 +0000 |
parents | 4b1413bc0205 |
children | 9ec780aea5bb 2749699e06fa |
files | simulate_echo.m |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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'';');