Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Subscript indices
Date: Tue, 17 Feb 2009 14:37:02 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 12
Message-ID: <gnei2e$n95$1@fred.mathworks.com>
References: <gne9b2$46o$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234881422 23845 172.30.248.38 (17 Feb 2009 14:37:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Feb 2009 14:37:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:518846


"S?bastien Vilaseca"
> 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...

yes, peruse this great intro by steve eddins and loren shure

http://www.mathworks.com/company/newsletters/digest/sept01/matrix.html

us