Array processing operation and summation
Mostrar comentarios más antiguos
Respuesta aceptada
Más respuestas (1)
KSSV
el 12 de Abr. de 2021
0 votos
To achieve this you need to read about input and for loop.
- Use input and enter the value of N.
- Initialize the required sum value to zero.
- Run a d for loop from n = 1 to N, inside the loop calculate your formula and sum using the above initliazed value.
1 comentario
Rui Hou
el 12 de Abr. de 2021
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
