필터 지우기
필터 지우기

why function save and load not work in my matlab R2013a

조회 수: 1 (최근 30일)
imola
imola 2015년 3월 31일
댓글: Brendan Hamm 2015년 4월 1일
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
imola
imola 2015년 4월 1일
Dear,
the error message is
error using save
( unable to write file pqfile.mat: permission denied)
it cases a lot of problems to me, because I need to save and load matrix between files. Thanks for any advice and help.
regards
Brendan Hamm
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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by