filesep
当前平台的文件分隔符
说明
返回特定于平台的文件分隔符。文件分隔符是分隔路径中各个文件夹和文件名的字符。f
= filesep
示例
在 Windows 上创建文件夹路径
在 Microsoft® Windows® 平台上创建指向 iofun
文件夹的路径。
iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']
iofun_dir = 'toolbox\matlab\iofun'
在 Linux 上创建文件夹路径
在 Linux® 平台上创建指向 iofun
文件夹的路径。
iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']
iofun_dir = 'toolbox/matlab/iofun'
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅Run MATLAB Functions in Thread-Based Environment。
版本历史记录
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)