Path: news.mathworks.com!not-for-mail
From: "Francesco " <fsarnari@maths.leeds.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Saving file.mat
Date: Sun, 25 May 2008 22:59:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <g1cqvm$o89$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 1211756342 24841 172.30.248.35 (25 May 2008 22:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 25 May 2008 22:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 277707
Xref: news.mathworks.com comp.soft-sys.matlab:470297



Hi Everybody,
I want to save the variables V0, V1, and V2 into a .mat 
file (data_...) and then store the .mat file into the 
directory ODE, which is NOTin my default directory C:\, but 
into an external device, say E:\.
I am trying to use this string:


filename = num2str(j,'data_%d.mat');

save(['E:\ODE' filename, 'V0', 'V1', 'V2'])


but I don't succeed. What am I doing wrong? Could you help 
me at writing this correctly?
Many thanks,
Francesco