Environment and Settings > System Commands
38 functions in MATLAB › Environment and Settings > System Commands.
addGroup | Creates a new settings group inside the settings tree or inside another group. |
addpref | Creates a new preference; fails if it already exists. |
addSetting | Adds a setting, a named value holder, to a settings group. |
clearInstallationValue | Removes the installation value of a setting. |
clearPersonalValue | Removes the personal value of a setting. |
clearTemporaryValue | Removes the temporary value of a setting. |
clipboard | Copies text to the system clipboard or reads the text stored there. |
cmdsep | Returns the string that separates commands on one line of the system shell. |
dos | Runs a command through the Windows command interpreter and returns its status and output. |
getenv | Returns the value of an operating-system environment variable. |
getpref | Reads a preference stored under a group name. |
hasFactoryValue | Tests whether a setting has a factory value. |
hasGroup | Tests whether a settings group contains a child group of a given name. |
hasInstallationValue | Tests whether a setting has a installation value. |
hasPersonalValue | Tests whether a setting has a personal value. |
hasSetting | Tests whether a settings group contains a setting of a given name. |
hasTemporaryValue | Tests whether a setting has a temporary value. |
isenv | Tests whether an environment variable is defined. |
ispref | Tests whether a preference or a preference group exists. |
loadenv | Loads environment variables from a .env file. |
matlab.io.saveVariablesToScript | Saves workspace variables as a MATLAB script that recreates them. |
matlab.settings.mustBeIntegerScalar | Validation function that errors unless the value is an integer scalar. |
matlab.settings.mustBeLogicalScalar | Validation function that errors unless the value is a logical scalar. |
matlab.settings.mustBeNumericScalar | Validation function that errors unless the value is a numeric scalar. |
matlab.settings.mustBeStringScalar | Validation function that errors unless the value is a string scalar or character vector. |
perl | Runs a Perl script and returns its output and exit status. |
removeGroup | Deletes a settings group and everything inside it. |
removeSetting | Deletes a setting from a settings group. |
rmpref | Removes a preference, or a whole preference group. |
setenv | Sets an environment variable for the current process. |
setpref | Creates a preference or changes its value. |
Setting | Object that holds one named setting and its layered values. |
settings | Returns the root of the settings tree. |
SettingsGroup | Object that represents a group of settings and nested groups. |
system | Runs an operating-system command and returns its exit status and output. |
unix | Runs a command through the Unix shell and returns its status and output. |
unsetenv | Removes an environment variable from the current process. |
winqueryreg | Reads a value, or lists the entries, of a key in the Windows registry. |