How to write sum

조회 수: 5 (최근 30일)
Ian Lafountain
Ian Lafountain 2020년 2월 4일
답변: Lalit Dhurve 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에서 Mathematics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by