Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: create excel plot with MATLAB?
Date: Fri, 6 Jul 2012 04:03:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <jt5o1v$msi$1@newscl01ah.mathworks.com>
References: <i1njgq$1og$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1341547391 23442 172.30.248.46 (6 Jul 2012 04:03:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Jul 2012 04:03:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3536503
Xref: news.mathworks.com comp.soft-sys.matlab:773124

Okay that is helpful. However, if this has to be done in a loop, then that is a problem becasue this is a range of columns:

for i = 1:5 %I am stopping at 5 because I would need to loop through columns B-F
.
.
.    
end

The column names are not numeric. The counter that loops through is i which is numeric. How would it know that it has to specify a column in EXCEL?