How to write sum

3 views (last 30 days)
Ian Lafountain
Ian Lafountain on 4 Feb 2020
Answered: Lalit Dhurve on 4 Feb 2020
How can I write this summation:
where N is simply input by the user

Accepted Answer

Lalit Dhurve
Lalit Dhurve on 4 Feb 2020
Simple !!
function Y=Summation(N)
Y=0;
for n=1:1:N
Y=Y+((n+2)/sqrt(n))+n^3;
end
end
Done !!!

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!