PATH2CELL Convert search path to cell array. PATH2CELL returns a cell array where each element is a directory in the search path. PATH2CELL(MYPATH) converts MYPATH rather than the search path. Empty directories are removed, so under UNIX, PATH2CELL('foo::bar') returns {'foo', 'bar'} rather than {'foo', '', 'bar'}.