help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: for loop taking output as input for the next iteration in loop


From: Colin Macdonald
Subject: Re: for loop taking output as input for the next iteration in loop
Date: Wed, 30 Aug 2017 20:01:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 2017-08-30 07:46 PM, naryana.shankara wrote:
for a = 1:5
     X*A
end

Compute X k+1 = AX k , for k = 1, 2, . . . , 5 using a for loop and report
the results for each

Have you tried "X = A*X" inside your loop?

best,
Colin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]