%% Use Python tuple Type in MATLAB
% This example shows how to use a Python® tuple, returned by the os.path.split function, in MATLAB®.

pn = py.os.path.split('C:\Program Files\MATLAB\R2014a\help\examples')

%
% Convert the parts of the folder to MATLAB variables and display the results.

head = char(pn{1})
tail = char(pn{end})

%
% Copyright 2012 The MathWorks, Inc.