- #1
ramin86
- 42
- 0
m = 0;
x(1)=10;
for k = 2:3:11
m = m+1;
x(m+1) = x(m) + k^2;
end
Its a simple program, but for some reason I cannot explain how it works, I was wondering if I can get some help.
x(1)=10;
for k = 2:3:11
m = m+1;
x(m+1) = x(m) + k^2;
end
Its a simple program, but for some reason I cannot explain how it works, I was wondering if I can get some help.