Path: news.mathworks.com!not-for-mail
From: "Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: iteration to vector
Date: Fri, 19 Feb 2010 22:13:04 +0000 (UTC)
Organization: Universit&#228;t Heidelberg
Lines: 24
Message-ID: <hln2dg$a4m$1@fred.mathworks.com>
References: <hllk64$674$1@fred.mathworks.com>
Reply-To: "Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1266617584 10390 172.30.248.38 (19 Feb 2010 22:13:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Feb 2010 22:13:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869888
Xref: news.mathworks.com comp.soft-sys.matlab:609898

Dear Chris!

> I want each iteration of n to be in the same vector
> 
> input = 200;
> n = input;
> while n > 38
>     n = round(n ./3 + 25);
>     disp(n) %shows the iterations of n
> end
> end
> 
> When I do this it shows the iterations of n but I cannot do anything with them
> I tried:
> vec = disp(k) but it comes up with an error.
> 
> I looked on the forums and it seems like I need a for loop.
> Any help?

Yes, any help.
Define the meaning of "I want each iteration of n to be in the same vector" exactly.
What do you expect "vec = disp(k)" to do? What is k ?!

Good luck, Jan