我正在尝试将文件移动到包含此代码的文件夹
function addImage_Callback(hObject, eventdata, handles)
% get the file to add to another folder
[baseName, folder] = uigetfile();
% get the full file path of the file to add
fullFilePath = fullfile(folder, baseName);
% get the full folder path of the folder currently selected in the listbox
selectedFolder = get(handles.folders,'string');
selectedFolder = selectedFolder{get(handles.folders,'value')};
% move the file to the folder
moveFile(fullFilePath, selectedFolder);
并收到此错误
Undefined function 'moveFile' for input arguments of type 'char'.
Error in niceinterface>addImage_Callback (line 549)
moveFile(fullFilePath, selectedFolder);
有谁知道发生了什么事? movefile的matlab规范说它需要字符串,而我用来获取文件夹/文件的代码以前都有用。
在'发送'之后我收到了以下输出
D:\Downloads\44d9de8db7c840bf0f3fabc9371f9e0d.jpeg
D:\ImageViewer
全部谢谢!