How to write sum
26 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ian Lafountain
el 4 de Feb. de 2020
Respondida: Lalit Dhurve
el 4 de Feb. de 2020
How can I write this summation:
where N is simply input by the user
0 comentarios
Respuesta aceptada
Lalit Dhurve
el 4 de Feb. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!