This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

filesep

File separator for current platform

Syntax

f = filesep

Description

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.

Examples

collapse all

Create a path to the iofun folder on a Microsoft® Windows® platform.

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' filesep 'matlab' filesep 'iofun']
iofun_dir = 
'toolbox/matlab/iofun'

Introduced before R2006a