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
save('paxt4.mat','i','-append');
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
댓글 수: 0
채택된 답변
추가 답변(0개)
참고 항목
범주
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!