Main Content


Command separator for current platform

Since R2023b



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


collapse all

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

c = cmdsep
c = 


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

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

Extended Capabilities

Version History

Introduced in R2023b

See Also

| | | | |