cmdsep - Command separator for current platform - MATLAB (original) (raw)

Main Content

Command separator for current platform

Since R2023b

Syntax

Description

c = cmdsep returns the platform-specific command separator character. The command separator is the character that separates individual commands.

example

Examples

collapse all

Return the command separator on a Microsoft® Windows® platform.

Open a second instance of MATLAB® in a different folder. You can create a chain of system commands by usingcmdsep with system.

system("cd myfolder/" + cmdsep + "matlab");

Extended Capabilities

expand all

Usage notes and limitations:

Version History

Introduced in R2023b