%% Split Path on File Separator

myPath = 'C:\work\matlab';
C = strsplit(myPath,'\')

% Copyright 2012 The MathWorks, Inc.