FUNCTION REFERENCE

filesep

Return the host file separator.

Return the host file separator.

Syntax

s = filesep

Returns a backslash on Windows and a forward slash on Unix.

Example

numel(filesep)   % 1

Differences from MATLAB: none known for this form.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.