Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 655 Bytes
function prefix=pref(string,delim)
% prefix=PREF(string,delim)
% Finds the prefix or head in a string, say a filename.
% The delimiter is a '.' (period) by default, but may be set.
% string The string to be parsed
% delim The string that separates prefix from suffix
% See also SUF
% Last modified by, 05/24/2010
% Something fishy is going on here... I forget why
% Something to do with having more than one delimiter?
% See hsfigX