Home > vbmeg > external > iso2mesh > deletemeshfile.m

deletemeshfile

PURPOSE ^

SYNOPSIS ^

function flag=deletemeshfile(fname)

DESCRIPTION ^

 flag=deletemeshfile(fname)

 delete a given work mesh file under the working directory

 author: Qianqian Fang, <q.fang at neu.edu>

 input: 
     fname: specified file name (without path)

 output:
     flag: not used

 -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function flag=deletemeshfile(fname)
0002 %
0003 % flag=deletemeshfile(fname)
0004 %
0005 % delete a given work mesh file under the working directory
0006 %
0007 % author: Qianqian Fang, <q.fang at neu.edu>
0008 %
0009 % input:
0010 %     fname: specified file name (without path)
0011 %
0012 % output:
0013 %     flag: not used
0014 %
0015 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
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

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005