This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


File separator for current platform


f = filesep


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.


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

iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']

iofun_dir =

Create a path to iofun on a UNIX®[1] platform.

iodir = ['toolbox' filesep 'matlab' filesep 'iofun']

iodir =

Introduced before R2006a

[1] UNIX is a registered trademark of The Open Group in the United States and other countries.

Was this topic helpful?