Using previous values to calculate next one in a for loop
Show older comments
Hi, I have a matlab code to calculate agitation speed in my reactor. It uses 2 previous values of Dissolved oxygen and the previous agitation speed. My question is, I know that I can't use (i-1) in order to get the previous value. So how can I do it? Should I use (i+1)?
Accepted Answer
More Answers (1)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
