语法:
pathstr=fullfile(filepart1,…,filepartN)
解释:将filepart1到filepartN的字符串构建成完整的路径
例子:
pathstr=fullfile('D','data','myfile.txt')
pathstr ='D\data\myfile.txt'
参考网址:https://ww2.mathworks.cn/help/matlab/ref/fullfile.html?s_tid=srchtitle
语法:
pathstr=fullfile(filepart1,…,filepartN)
解释:将filepart1到filepartN的字符串构建成完整的路径
例子:
pathstr=fullfile('D','data','myfile.txt')
pathstr ='D\data\myfile.txt'
参考网址:https://ww2.mathworks.cn/help/matlab/ref/fullfile.html?s_tid=srchtitle