p = genpath(folder)
genpath returns a path string containing folder and its included subfolders separated by pathsep.
p = genpath(tempdir())