我有一些以
开头的代码[filename, pathname] = uigetfile('*.mat','Please select your data',...
'Multiselect','on');
,它继续计算并存储一个名为"results"的变量。
我想把"results"保存到用户开始选择数据的文件夹中,我试过了:
save(pathname/'merge.mat');
和其他一些东西但是我不能让它工作
试试这个:
save([pathname 'merge.mat']);
您需要将路径名字符串连接到"merge"。因此,必须使用方括号[string1 string2]。