Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Vectorized function iterating
Date: Tue, 18 Mar 2008 09:20:04 +0000 (UTC)
Organization: Moscow State University
Lines: 14
Message-ID: <fro1g4$ibc$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 1205832004 18796 172.30.248.37 (18 Mar 2008 09:20:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Mar 2008 09:20:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1127783
Xref: news.mathworks.com comp.soft-sys.matlab:457773



Hello there.

Now I have to write the following code:

for i = 2 : N
  x(i) = f( x( i - 1 ) );
end

which I want to implement without "for".

Doest anybody know If there is a function in MATLAB that
could be useful in this scenario?

TIA