How to write sum
조회 수: 5 (최근 30일)
이전 댓글 표시
How can I write this summation:
where N is simply input by the user
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!