How can I write a series function?
조회 수: 5 (최근 30일)
이전 댓글 표시
Write a function that gives sum of the series given by
Sn=550+2+3+6+11+...+(n^2-2*n+3)
for different values of n.
댓글 수: 0
답변 (1개)
Geoff Hayes
2019년 2월 17일
Alaska - this seems like a homework question. Presumably n starts at one and then goes to what exactly? If you know the upper bound then you could either use a for loop or you could use vectorization to determine an answer.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series Events에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!