Actually it's slightly more complicated than that. I need the function to be of another function of n, so something of the form
f = @(x) exp( -g(n) * x ), summed over some range of n.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!