change the signs of the even index entries of the reversed vector
example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4]
example2 vec = [-4 -1 -2 -9] ans = [-9 2 -1 4]
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers662
Suggested Problems
-
Return the largest number that is adjacent to a zero
5547 Solvers
-
972 Solvers
-
Set the array elements whose value is 13 to 0
1458 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
2145 Solvers
-
Find the index of n in magic(n)
276 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The test suite has been expanded.