image thumbnail
from Essential MATLAB by Brian Hahn
Companion software for Essential MATLAB for Scientists and Engineers

limit.m
a = 10;
x = 1;
k = 20;           % number of terms

for n = 1:k
 x = a * x / n;
 disp( [n x] )
end

Contact us at files@mathworks.com