How to save and append variable into a matlab file?
조회 수: 6(최근 30일)
I would like to save variable "i" in a mat file "paxt.mat". This is to be saved in the current directory.
The varaible "i" varies with each loop hence need to append it.
I tried :
save(fullfile(pwd,'paxt4.mat'),'i','-append'); % OR
Error using save
Unable to write file D:\..\paxt.mat: No such file or directory.
Both of these does not work. I do not undestand what is wrong.
Any help will be greatly appriciated.
Thanks in advance