why function save and load not work in my matlab R2013a
2 次查看(过去 30 天)
显示 更早的评论
Dear,
I'm trying to use these functions but it always give me error.
I have a matrix and I need to save it then call it from another file, I used in my version R2012b these command and they work but not in R2013a
save('Rfile.txt','R','-ascii');
R=load('Rfile.txt');
so I used
savefile = 'Rfile.mat')
save(savefile,'R');
like this example how not work also in R2013a and its from documentation.
savefile = 'pqfile.mat';
p = rand(1, 10);
q = ones(10);
save(savefile, 'p', 'q');
can anyone tell me please why and how to use them.
regards
4 个评论
Brendan Hamm
2015-4-1
You likely do not have write access to the directory (or file if it already exists) you are trying to save to. What is your operating system?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!