System Commands
System commands provide programmatic access to your operating system and the MATLAB environment. Using these commands, you can access information about your computer, copy content to the system clipboard, get and set environment variables, and execute operating system commands. To access and modify options for tools within MATLAB, such as the Command Window, Editor, or App Designer, use settings. To store and access your own data across MATLAB sessions, create custom settings.
Functions
Settings
Topics
- Access and Modify Settings
Access and modify options for tools such as fonts and colors using settings.
- Create Custom Settings
Create custom settings to programmatically store and access data across sessions.
- Shell Escape Function Example
Call external programs by issuing operating system commands.
- Run External Commands, Scripts, and Programs
Use the
!
character to call an operating system command. Run UNIX programs off the system path. - Change Environment Variable for Shell Command
Substitute a user-specified value for an environment variable value set by MATLAB when you call a function using the
system
command.