This is a general indexing question. I thought if you preallocated the y(n) locations, I could calculate y(n) based on y(n-1) but that is not working right.
I could have made up some other difference equation.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!