Problem 59846. Sequencing Odd Even numbers
Given an input value n, create a vector which contains all odd numbers & even numbers centered around mean of vector. If the mean is even/decimal number, round and rescale the even values of vecto. Similarly if the mean of vector is odd, rescale the odd numbers and present it as Odd-Even format
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 14 Oct 2024
@VBBV, I strongly recommend you to remove the solution from the solution template and update the test suite with atleast 4 good quality test cases.
Solution Comments
Show commentsProblem Recent Solvers10
Suggested Problems
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2390 Solvers
-
Convert from Base 10 to base 5
270 Solvers
-
1204 Solvers
-
Calculate the derivative of a polynomial
232 Solvers
-
Find out value of sine given by degree.
344 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!