Path: news.mathworks.com!not-for-mail
From: "S?bastien Vilaseca" <seb2000@bluewin.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Subscript indices
Date: Tue, 17 Feb 2009 12:08:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <gne9b2$46o$1@fred.mathworks.com>
Reply-To: "S?bastien Vilaseca" <seb2000@bluewin.ch>
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 1234872482 4312 172.30.248.35 (17 Feb 2009 12:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Feb 2009 12:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1693681
Xref: news.mathworks.com comp.soft-sys.matlab:518807


Hi,
I have the following loop:

for x=[0.001:0.001:0.1]
result(x)=y;
end

The problem is that I get the following error message: "Subscript indices must either be real positive integers or logicals". So is there a way I can make it without that error?

Thanks a lot.