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 comments
Loading...
Problem Recent Solvers59
Suggested Problems
-
We love vectorized solutions. Problem 1 : remove the row average.
892 Solvers
-
07 - Common functions and indexing 6
468 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1826 Solvers
-
113 Solvers
-
Calculate Amount of Cake Frosting
29791 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!