how to plot a summation function in matlab using a for loop
8 views (last 30 days)
Rik on 28 May 2023
It's a good start.
You should only put the summation part in the loop, and you should store the results in a vector. (remember that the first element of a vector is index 1)
I would also suggest that you use n instead of i.
If you need help implementing this, feel free to post a comment.