on-internet
← Community

What is the correct way to implement this loop that will average values with a changing counter?

Stack Overflow ·

I have looked thoroughly on the internet for an answer to this question, but it seems to be too specific for an answer anywhere else. This is my last stop. To preface, this is not a homework problem, but it is adapted from an online Coursera course, whose quiz has already passed. I got the correct answer, but it was mostly luck. Also, it is a more of a general programming question than anything related to the course, so I know for a fact that it is within my right to ask it on a public forum. The last thing is that I'm trying to do this in MatLab; however if you have an answer that is in C++ o

Comments

Sign in or sign up to comment and upvote.

No comments yet.