How can I write a series function?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Geoff Hayes
il 17 Feb 2019
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 Commenti
Vedere anche
Categorie
Scopri di più su Time Series Events in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!