How to save to mat file
Show older comments
Hi All,
I am having some problem now and need to solve it urgently. Please help.
imep=W4/(pi*b^2/4*s);
eta=W4/mass1*(1+phi*0.06548*(1-f))/phi/0.06548/(1-f)/47870/1e3;
timefinish=cputime;
timetaken=timefinish-timestart;
% save all data
save ahrind.mat
clear
I am having some error.
*Error using save Unable to write file ahrind.mat: permission denied.
Error in ahrind (line 80) save ahrind.mat *
Can I know how can I save the file to mat format.
Thanks.
Accepted Answer
More Answers (3)
the cyclist
on 27 Aug 2013
0 votes
Just a guess, but this seems to be a system problem, not a MATLAB problem.
It seems you do not have write permission in the directory where you are running this code.
1 Comment
Ashish Rawat
on 30 Sep 2017
How can i get the permission?
Jan
on 27 Aug 2013
The message means, that you do not have write permissions in the current folder. So either obtain these permissions (perhaps by asking your admin), or write the data to another folder:
save(fullfile(tempdir, 'ahrind.mat'))
Getinet Amare
on 20 Dec 2017
0 votes
The message means, that you do not have write permissions in the current folder. So either obtain these permissions (perhaps by asking your admin), or write the data to another folder:
save(fullfile(tempdir, 'getinet.mat')) to load the file you saved you can use the following command i.e. simply change the save command to load and leave the rest as it is load(fullfile(tempdir,'getinet.mat'))
1 Comment
Walter Roberson
on 20 Dec 2017
Systems administrators might delete temporary directories without notice. Also, some operating systems delete temporary directories upon every reboot. Some "system performance enhancing" software delete the temporary files as well.
Categories
Find more on Search Path 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!