您的位置:首页 > 编程语言 > MATLAB

举例说明MATLAB的fullfile

2017-09-06 14:36 155 查看
 用法实例

路径到文件

fullfile(matlabroot,'toolbox','matlab','general','Contents.m')

ans =

D:\Program Files\MATLAB\R2014a\toolbox\matlab\general\Contents.m

>> fullfile(toolboxdir('matlab'),'iofun',{'filesep.m';'fullfile.m'})

ans = 

    'D:\Program Files\MATLAB\R2014a\toolbox\matlab\iofun\filesep.m'

    'D:\Program Files\MATLAB\R2014a\toolbox\matlab\iofun\fullfile.m'

路径到文件夹

fullfile(matlabroot,'toolbox','matlab',filesep)

ans =

D:\Program Files\MATLAB\R2014a\toolbox\matlab\
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: