I have a loop that looks like this:
for a = 1: 9 for b = 1 : 1000 for c = 1 : 1000 image = myimage_bands(b, c, a); new_image = image * 5; end endend
I am trying to find the cumulative sum of my variable 'new_image', as it goes through the loop. I've tried cumsum, but it doesn't work.
Any ideas are appreciated. Thanks!
Best Answer