FUNCTION REFERENCE
dos
Execute an operating system command.
Execute an operating system command.
Syntax
[status, cmdout] = dos(command); [status, cmdout] = dos(command, '-echo')Runs command through the platform shell using the same engine path as system, returning exit status and captured output.
Example
[status, out] = dos("echo ok")Differences from MATLAB: Runs on all operating systems via the same shell path as system.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.