Path: news.mathworks.com!not-for-mail
From: "ragab Rabeiy" <r_rabeiy@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: xlswrite
Date: Thu, 15 Oct 2009 10:05:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <hb6s4f$evt$1@fred.mathworks.com>
Reply-To: "ragab Rabeiy" <r_rabeiy@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255601103 15357 172.30.248.37 (15 Oct 2009 10:05:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 Oct 2009 10:05:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2041704
Xref: news.mathworks.com comp.soft-sys.matlab:577474


i am a new user in Matlab, and i faced small problem, could u please help me??

this problem is: for the following code, Matlab writes only in Excel the final value (pi*5),

and I want it to write all the data from 1 to 5.

for x=1:5;
m=pi*x;
xlswrite('file.xls', m)
end