How to write sum
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ian Lafountain
le 4 Fév 2020
Réponse apportée : Lalit Dhurve
le 4 Fév 2020
How can I write this summation:
where N is simply input by the user
0 commentaires
Réponse acceptée
Lalit Dhurve
le 4 Fév 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!