系统命令
以编程方式与操作系统和 MATLAB® 环境交互
通过系统命令能够以编程方式访问操作系统和 MATLAB 环境。使用这些命令,您可以访问有关您的计算机的信息,将内容复制到系统剪贴板,获取和设置环境变量,以及执行操作系统命令。要访问和修改 MATLAB 中的工具选项,如命令行窗口、编辑器或 App 设计工具,请使用设置。要在 MATLAB 会话中存储和访问您自己的数据,请创建自定义设置。
函数
设置
主题
- 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.
- 运行外部命令、脚本和程序
使用
!
字符调用操作系统命令。在系统路径以外运行 UNIX 程序。 - 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.