How to write sum

21 次查看(过去 30 天)
Ian Lafountain
Ian Lafountain 2020-2-4
How can I write this summation:
where N is simply input by the user

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by