Documentation

System Commands

Interact programmatically with the operating system and the MATLAB® application

Functions

Operating System Commands

clipboard Copy and paste strings to and from system clipboard
computer Information about computer on which MATLAB software is running
dos Execute DOS command and return output
getenv Environment variable
perl Call Perl script using appropriate operating system executable
setenv Set environment variable
system Execute operating system command and return output
unix Execute UNIX command and return output
winqueryreg Item from Windows registry

MATLAB Environment

commandhistory Open Command History window, or select it if already open
commandwindow Open Command Window, or select it if already open
filebrowser Open Current Folder browser, or select it if already open
workspace Open Workspace browser to manage workspace
matlab.io.saveVariablesToScript Save workspace variables to MATLAB script
getpref Preference
setpref Set preference
addpref Add preference
rmpref Remove preference
ispref Test for existence of preference
Was this topic helpful?