Accepted Answer

Adam Danz
Adam Danz on 13 Feb 2019
Edited: Adam Danz on 13 Feb 2019
This solution relies on only one for-loop (although technically you could replace this for-loop, too). 'sumOut' is the solution to the equation.
kMax = 10;
out = zeros(1,kMax);
for k = 1:kMax
out(k) = sum(sin((pi + 0.1)./(1:k)) .* exp(-k/2));
end
sumOut = sum(out);

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 13 Feb 2019

Edited:

on 13 Feb 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!