MATLAB Function Reference |
Return path separator for current platform
Syntax
Description
c = pathsep
returns the path separator character for this platform. The path separator is the character that separates directories in the string returned by the matlabpath
function.
Examples
Extract each individual path from the string returned by matlabpath
. Use pathsep
to define the path separator:
s = matlabpath; p = 1; while true t = strtok(s(p:end), pathsep); disp(sprintf('%s', t)) p = p + length(t) + 1; if isempty(strfind(s(p:end),';')) break, end; end
D:\Applications\matlabR14beta2\toolbox\matlab\general D:\Applications\matlabR14beta2\toolbox\matlab\ops D:\Applications\matlabR14beta2\toolbox\matlab\lang D:\Applications\matlabR14beta2\toolbox\matlab\elmat D:\Applications\matlabR14beta2\toolbox\matlab\elfun . . .
See Also
pathdef | pathtool |
© 1994-2005 The MathWorks, Inc.