我将数组的内容保存到不同的文件中,如下所示:
for i=1:10
name = [myfilename num2str(i)]
savevar = myvariable(i)
filename = mat2str([name '.dat'])
save(filename, savevar, '-ascii','-double','-append')
end
我一直在摆弄这个并不断收到以下错误:
??? Error using ==> save
Argument must contain a string.
我哪里错了?