File separator for current platform
f = filesep
example
f = filesep returns the platform-specific file separator character. The file separator is the character that separates individual folder and file names in a path.
f
collapse all
Create a path to the iofun folder on a Microsoft® Windows® platform.
iofun
iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']
iofun_dir = 'toolbox\matlab\iofun'
Create a path to the iofun folder on a Linux® platform.
iofun_dir = 'toolbox/matlab/iofun'
fileparts | fullfile | pathsep
fileparts
fullfile
pathsep
You have a modified version of this example. Do you want to open this example with your edits?