How to write sum
29 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ian Lafountain
il 4 Feb 2020
Risposto: Lalit Dhurve
il 4 Feb 2020
How can I write this summation:
where N is simply input by the user
0 Commenti
Risposta accettata
Lalit Dhurve
il 4 Feb 2020
Simple !!
function Y=Summation(N)
Y=0;
for n=1:1:N
Y=Y+((n+2)/sqrt(n))+n^3;
end
end
Done !!!
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!