0001 function flag=deletemeshfile(fname)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 try
0019 if(exist(fname))
0020 delete(fname);
0021 end
0022 catch
0023 error(['You do not have permission to delete temporary files. If you are working in a multi-user ',...
0024 'environment, such as Unix/Linux and there are other users using iso2mesh, ',...
0025 'you may need to define ISO2MESH_SESSION=''yourstring'' to make your output ',...
0026 'files different from others; if you do not have permission to ',mwpath(''),...
0027 ' as the temporary directory, you have to define ISO2MESH_TEMP=''/path/you/have/write/permission'' ',...
0028 'in matlab/octave base workspace.']);
0029 end
0030