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.
Examples
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
Usage notes and limitations:
- The function
cmdsep
returns the separator for the platform on which the generated code is running.
Version History
Introduced in R2023b