Problem 44664. function to compute root mean square of first nn positive odd integers
Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers53
Suggested Problems
-
3553 Solvers
-
Program an exclusive OR operation with logical operators
705 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1012 Solvers
-
6602 Solvers
-
Matlab Basics II - Max & Index of Max
243 Solvers
More from this Author29
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!