Average function of squares
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
John D'Errico
el 3 de En. de 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?
Respuesta aceptada
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!