rmpath
从搜索路径中删除文件夹
说明
rmpath(
从搜索路径中删除指定文件夹。folderName
)
示例
从搜索路径中删除文件夹
从搜索路径中删除 /usr/local/matlab/mytools
。
rmpath('/usr/local/matlab/mytools')
输入参数
folderName
— 文件夹名称
字符向量 | 字符串标量
要从搜索路径中删除的文件夹的名称,指定为字符向量或字符串标量。使用 folderName
的完整路径名。
示例: 'c:\matlab\work'
示例: '/home/user/matlab'
MATLAB® 会将所有包含 '.
'、'..
' 和符号链接的路径名称解析为其目标位置,之后再将其从路径中删除。例如,如果指定 c:\matlab\..\work
,则 MATLAB 从路径中删除文件夹 c:\work
。
数据类型: char
| string
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)