Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vector Math vs For Loop
Date: Wed, 18 Nov 2009 17:24:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <he1ajj$b7a$1@fred.mathworks.com>
References: <hdv4n7$la$1@fred.mathworks.com> <hdv75f$2s4$1@fred.mathworks.com> <hdv8ie$th$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1258565043 11498 172.30.248.37 (18 Nov 2009 17:24:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 18 Nov 2009 17:24:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2084273
Xref: news.mathworks.com comp.soft-sys.matlab:586180


thank you so much for trying this problem... 
i couldnt help but get a little confused sorry !

in your code you have 
B=0.5
but B is actually a vector? 

also in the equation the current value of "x" depends on a previous value of "x", which hasn't been asigned an initial value in the code?