function f_out = filesep

%FILESEP Directory separator for this platform. 
%   F = FILESEP returns the file separator character for this platform.
%   The file separator is the character that separates 
%   directory names in filenames.
%
%   See also PATHSEP, FULLFILE.

%   Copyright 1984-2000 The MathWorks, Inc.
%   $Revision: 1.14 $  $Date: 2000/06/01 04:17:57 $

persistent f;

if isempty(f)
	c = computer;
	if strcmp(c(1:2),'PC')
    	f = '\';
	elseif strcmp(c(1:2),'MA')
    	f = ':';
	else  % isunix
    	f = '/';
	end
end
f_out = f;
