Main Content

Comandos del sistema

Interactúe de forma programática con el sistema operativo y el entorno de MATLAB®.

Los comandos del sistema proporcionan acceso programático al sistema operativo y al entorno de MATLAB. Con estos comandos puede acceder a información sobre su ordenador, copiar contenido en el portapapeles del sistema, obtener y establecer variables de entorno y ejecutar comandos del sistema operativo. Para acceder y modificar las opciones de las herramientas dentro de MATLAB, como Command Window, Editor o App Designer, utilice la configuración. Para guardar y acceder a sus propios datos en todas las sesiones de MATLAB, cree una configuración personalizada.

Funciones

expandir todo

clipboardCopy and paste text to and from system clipboard
computerInformation about computer on which MATLAB is running
systemExecute operating system command and return output
cmdsepCommand separator for current platform (desde R2023b)
dosExecute DOS command and return output
unixExecute UNIX command and return output
getenvEnvironment variable
loadenvLoad environment variables from .env and plain text files (desde R2023a)
isenvDetermine if environment variable exists (desde R2022b)
setenvSet environment variable
unsetenvRemove environment variable (desde R2022b)
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 (desde R2022a)
hasTemporaryValueDetermine whether setting has temporary value set
hasPersonalValueDetermine whether setting has personal value set
hasInstallationValue Determine whether setting has installation value set (desde R2022a)
hasFactoryValueDetermine whether setting has factory value set
addSettingAdd new setting (desde R2019b)
addGroupAdd new settings group (desde R2019b)
hasGroupDetermine if settings group exists (desde R2019b)
hasSettingDetermine if setting exists in settings group (desde R2019b)
removeGroupRemove settings group (desde R2019b)
removeSettingRemove setting (desde R2019b)
matlab.settings.mustBeLogicalScalarValidate that setting value is a logical scalar (desde R2019b)
matlab.settings.mustBeNumericScalarValidate that setting value is a numeric scalar (desde R2019b)
matlab.settings.mustBeStringScalarValidate that setting value is a string scalar (desde R2019b)
matlab.settings.mustBeIntegerScalarValidate that setting value is an integer scalar (desde R2019b)
SettingRepresents individual setting
SettingsGroupGroup of settings and subgroup objects

Configuración

expandir todo

matlab.codeanalyzer SettingsCode analyzer settings (desde R2020a)
matlab.colors SettingsMATLAB syntax highlighting color settings
matlab.commandwindow SettingsCommand Window settings including text display settings (desde R2020b)
matlab.fonts SettingsCode font settings
matlab.general SettingsGeneral settings including MAT-file and random number 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

Temas

Información relacionada