Doxygen Source Code Documentation
Remove1DExtension.m
Go to the documentation of this file.00001 function [Prefix, Ext] = Remove1DExtension (fname) 00002 % 00003 % [Prefix, Ext] = Remove1DExtension (fname) 00004 % 00005 %Purpose: 00006 % removes known .1D filename extensions. 00007 % Look at code more more details. 00008 % 00009 %Input Parameters: 00010 % fname: filename 00011 % 00012 % 00013 %Output Parameters: 00014 % Prefix: filename without extension 00015 % Ext: recognized extension of 1D filename, if any 00016 % if Ext is empty then no know extensions were found 00017 % 00018 % 00019 %Key Terms: 00020 % 00021 %More Info : 00022 % RemoveExtension 00023 % 00024 % 00025 % 00026 % Author : Ziad Saad 00027 % Date : Tue Nov 9 09:59:58 EST 2004 00028 % SSCC/NIMH/ National Institutes of Health, Bethesda Maryland 00029 00030 00031 %Define the function name for easy referencing 00032 FuncName = 'Remove1DExtension'; 00033 00034 %Debug Flag 00035 DBG = 1; 00036 00037 Prefix = ''; Ext = ''; 00038 00039 if (isempty(fname)) return; end 00040 [Prefix, Ext] = RemoveExtension(fname,... 00041 '.1D|.1D.dset|.1D.col|.1D.NodeList|.1D.FaceSetList|.1D.cmap'); 00042 00043 return; 00044