方法一 path1 = ('E:\Desktop\'); xls_name = ('1.txt'); path = strcat(path1,xls_name); 方法二: path1 = ('E:\Desktop\')