Path: news.mathworks.com!not-for-mail
From: "Francesco " <fsarnari@maths.leeds.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Saving
Date: Wed, 23 Apr 2008 15:45:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 37
Message-ID: <funli1$56o$1@fred.mathworks.com>
Reply-To: "Francesco " <fsarnari@maths.leeds.ac.uk>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208965505 5336 172.30.248.35 (23 Apr 2008 15:45:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Apr 2008 15:45:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 277707
Xref: news.mathworks.com comp.soft-sys.matlab:464799


I tried to save my output files on
the external hard drive using
 
save ('E:\filename')
 
and actually my file is saved on the E: directory,
the only problem now being that in E: it is not
stored as .mat file, but "Link to Microsoft Access Office".
I don't know what to do, could you pls give me advice?
 
Here is the step of my code where this problem occurs:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
for l=1:N
 
   filename = num2str(l,'data_%d.mat');

   save ('E:\filename')
 
end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
I would like to end up on the E: directory with a set of 
files:
 
data_1.mat
data_2.mat
.
.
.
data_N.mat

Many thanks,
Francesco