Changeset 325
- Timestamp:
- Dec 7, 2011, 9:37:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r322 r325 1438 1438 if batch 1439 1439 path_civ=fileparts(which('civ')); 1440 batch_file_list{length(batch_file_list)+1}=['matlab -nodisplay -nosplash -r "cd ' path_civ ';civ_matlab(''' filename_xml ''');"']; 1440 filename_bat=[OutputFile '.bat']; 1441 [fid,message]=fopen(filename_bat,'w'); 1442 if isequal(fid,-1) 1443 msgbox_uvmat('ERROR', ['creation of .bat file: ' message]) 1444 return 1445 end 1446 fprintf(fid,['/opt/matlab/R2011a/bin/matlab -nodisplay -nosplash -r "cd(''' path_civ ''');'... 1447 'civ_matlab(''' filename_xml ''',''' OutputFile '.nc'');exit"']); 1448 fclose(fid); 1449 if isunix 1450 system(['chmod +x ' filename_bat]); 1451 end 1452 batch_file_list{length(batch_file_list)+1}=filename_bat; 1441 1453 else 1442 1454 [Data,erromsg]=civ_matlab(Param,filecell.nc.civ1{ifile,j});
Note: See TracChangeset
for help on using the changeset viewer.