I also recommend that you wait that someone else solves your problem before posting your solution. Of course, you can solve a problem that you've created, and it is nice to share your view on it (since, in this case, there is probably more than one function that maps to these same values). However, posting this many problems and solving all of them reinforces the theory of spam.
So sorry, I didn't realize that you were creating a problem group. I still recommend that you wait that someone else solves your problem before posting your solution.
Moreover, problem 16 needs to be have more test cases or else it becomes trivial.
1912 Solvers
Change the sign of even index entries of the reversed vector
303 Solvers
Determine the length of a string of characters
175 Solvers
Find the next Fibonacci number
229 Solvers
Find the sides of an isosceles triangle when given its area and height from its base to apex
471 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!