| MATLAB Function Reference | ![]() |
c = pathsep
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.
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), pathsep)) break, end;
end
disp(sprintf('%s', s(p:end)))Here is the output:
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
.
.
.![]() | pathdef | pathtool | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |