Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

System Commands

Interact programmatically with the operating system and the MATLAB® application

Functions

Operating System Commands

clipboard Copy and paste text to and from system clipboard
computer Information about computer on which MATLAB software is running
system Execute operating system command and return output
dos Execute DOS command and return output
unix Execute UNIX command and return output
getenv Environment variable
setenv Set environment variable
perl Call Perl script using appropriate operating system executable
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

Related Information

Was this topic helpful?