Summation with For Loop 2
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jwo Jiunn Kon
el 24 de Abr. de 2021
Comentada: Jwo Jiunn Kon
el 29 de Abr. de 2021
Hi, wanted to ask how to i do summation for this loop? Thanks for any help.
2 comentarios
Scott MacKenzie
el 24 de Abr. de 2021
If the f-terms are in arrays A and B. Then the solution is
sum(abs(A)) - abs(sum(B))
Of course, you'll need to do the work of computing A and B. But, your question was about summation.
Respuesta aceptada
Tarunbir Gambhir
el 27 de Abr. de 2021
If you want to compute the sum of the f-terms as symbolic functions, you can use the symsum function to get the sum of your series. You can refer the examples on the documentation page to understand how to use this function.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!