Skip to content

Commit 1c60aa9

Browse files
committed
Update testMsxFunctions.m
1 parent 0769241 commit 1c60aa9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/testMsxFunctions.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,13 @@
138138
pause
139139

140140
%or
141-
fid = fopen('ReportMsx.bat','w');
142141
if strcmp(computer('arch'),'win32')
143142
folder='32bit';
144143
elseif strcmp(computer('arch'),'win64')
145144
folder='64bit';
146145
end
147146
r = sprintf('%s\\%s\\epanetmsx.exe %s %s %s',pwd,folder,d.inputfile,d.MsxTempFile,[d.MsxTempFile(1:end-4),'.txt']);
148-
fprintf(fid,'%s \n',r);fclose all;
149-
!ReportMsx.bat
147+
system(r);
150148
open([d.MsxTempFile(1:end-4),'.txt'])
151149
disp('Press any key to continue...')
152150
pause
@@ -249,4 +247,4 @@
249247
%Delete s files
250248
sfilesexist = dir('s*');
251249
if (~isempty(sfilesexist)), delete s*, end;
252-
delete('testMsx.msx','*.hyd','*.bin','*bat*','*_temp*')
250+
delete('testMsx.msx','*.hyd','*.bin','*bat*','*_temp*')

0 commit comments

Comments
 (0)