这是我的代码:
filename_date = strcat('Maayanei_yeshua-IC_',file_date,'.pdf')
filenamepdf = strcat(filename,'.pdf')
rename(['C:\Users\user\Desktop\' filenamepdf],['C:\Users\user\Desktop\' filename_date]);
我得到了错误:
<??? Error using ==> movefile The system cannot find the path specified.>
或者
<??? Undefined function or method 'rename' for input arguments of type 'char'.>
我检查了数百次,文件在那里......我不知道为什么它找不到它,有什么帮助吗?