Display Operating System Command Status and Output
Display the current folder using the cd command. A
status of zero indicates that the command
completed successfully. MATLAB® returns a character vector containing the current folder
in cmdout.
command — Operating system command string | character vector
Operating system command, specified as a string or a character
vector. The command can be a Windows® UI program that opens a user interface, or a DOS console
command that you typically run in a DOS command window. The command
executes in a DOS shell, which might not be the shell from which you
started MATLAB.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.