Environment and Settings > System Commands

38 functions in MATLAB › Environment and Settings > System Commands.

addGroupCreates a new settings group inside the settings tree or inside another group.
addprefCreates a new preference; fails if it already exists.
addSettingAdds a setting, a named value holder, to a settings group.
clearInstallationValueRemoves the installation value of a setting.
clearPersonalValueRemoves the personal value of a setting.
clearTemporaryValueRemoves the temporary value of a setting.
clipboardCopies text to the system clipboard or reads the text stored there.
cmdsepReturns the string that separates commands on one line of the system shell.
dosRuns a command through the Windows command interpreter and returns its status and output.
getenvReturns the value of an operating-system environment variable.
getprefReads a preference stored under a group name.
hasFactoryValueTests whether a setting has a factory value.
hasGroupTests whether a settings group contains a child group of a given name.
hasInstallationValueTests whether a setting has a installation value.
hasPersonalValueTests whether a setting has a personal value.
hasSettingTests whether a settings group contains a setting of a given name.
hasTemporaryValueTests whether a setting has a temporary value.
isenvTests whether an environment variable is defined.
isprefTests whether a preference or a preference group exists.
loadenvLoads environment variables from a .env file.
matlab.io.saveVariablesToScriptSaves workspace variables as a MATLAB script that recreates them.
matlab.settings.mustBeIntegerScalarValidation function that errors unless the value is an integer scalar.
matlab.settings.mustBeLogicalScalarValidation function that errors unless the value is a logical scalar.
matlab.settings.mustBeNumericScalarValidation function that errors unless the value is a numeric scalar.
matlab.settings.mustBeStringScalarValidation function that errors unless the value is a string scalar or character vector.
perlRuns a Perl script and returns its output and exit status.
removeGroupDeletes a settings group and everything inside it.
removeSettingDeletes a setting from a settings group.
rmprefRemoves a preference, or a whole preference group.
setenvSets an environment variable for the current process.
setprefCreates a preference or changes its value.
SettingObject that holds one named setting and its layered values.
settingsReturns the root of the settings tree.
SettingsGroupObject that represents a group of settings and nested groups.
systemRuns an operating-system command and returns its exit status and output.
unixRuns a command through the Unix shell and returns its status and output.
unsetenvRemoves an environment variable from the current process.
winqueryregReads a value, or lists the entries, of a key in the Windows registry.