Main Content

System Commands

Interact programmatically with the operating system and the MATLAB® application

Functions

expand all

clipboardCopy and paste text to and from system clipboard
computerInformation about computer on which MATLAB is running
systemExecute operating system command and return output
dosExecute DOS command and return output
unixExecute UNIX command and return output
getenvEnvironment variable
loadenvLoad environment variables from .env and plain text files
isenvDetermine if environment variable exists
setenvSet environment variable
unsetenvRemove environment variable
perlCall Perl script using operating system executable
winqueryregItem from Windows registry
matlab.io.saveVariablesToScriptSave workspace variables to MATLAB script
getprefGet custom preference value
setprefSet custom preference value
addprefAdd custom preference
rmprefRemove custom preference
isprefDetermine if custom preference exists
settingsAccess the SettingsGroup root object
clearTemporaryValueClear temporary value for setting
clearPersonalValueClear personal value for setting
clearInstallationValueClear installation value for setting
hasTemporaryValueDetermine whether setting has temporary value set
hasPersonalValueDetermine whether setting has personal value set
hasInstallationValue Determine whether setting has installation value set
hasFactoryValueDetermine whether setting has factory value set
addSettingAdd new setting
addGroupAdd new settings group
hasGroupDetermine if settings group exists
hasSettingDetermine if setting exists in settings group
removeGroupRemove settings group
removeSettingRemove setting
matlab.settings.mustBeLogicalScalarValidate that setting value is a logical scalar
matlab.settings.mustBeNumericScalarValidate that setting value is a numeric scalar
matlab.settings.mustBeStringScalarValidate that setting value is a string scalar
matlab.settings.mustBeIntegerScalarValidate that setting value is an integer scalar
SettingRepresents individual setting
SettingsGroupGroup of settings and subgroup objects

Settings

expand all

matlab.codeanalyzer SettingsCode analyzer settings
matlab.colors SettingsMATLAB syntax highlighting color settings
matlab.commandwindow SettingsCommand Window settings including text display settings
matlab.fonts SettingsCode font settings
matlab.general SettingsGeneral settings including matfile settings
matlab.keyboard SettingsKeyboard settings including suggestions and completions settings
matlab.editor SettingsEditor settings, including language, backup, and display settings
matlab.appdesigner SettingsApp Designer settings, including canvas editor and component browser settings

Topics

Related Information