Average function of squares
1 view (last 30 days)
Show older comments
Greetings everyone, I'm trying to create a function called proms that returns mm, which is the average of the squares of the first nn positive integers, where nn is a positive integer and is the only input argument. For example sum(). My code is this:
Thank you dear friends!
2 Comments
John D'Errico
on 3 Jan 2023
Don't post a picture of your code. Paste in the code itself. It is just text! Then someone else can paste that code into MATLAB to help you. While this is not a lot of code, it still slows down someone who might help you. Do you really want to make it even slightly more difficult to get help?
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!