Wednesday, August 5, 2009

filesep

Return the directory separator for this platform

Syntax

  • f = filesep

Description

f = filesep returns the platform-specific file separator character. The file separator is the character that separates individual directory names in a path string.

Examples

On the PC

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

    iofun_dir =

    toolbox\matlab\iofun

On a UNIX system

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

    iodir =

    toolbox/matlab/iofun

No comments:

Post a Comment