Problem 1038. Change the sign of even index entries of the reversed vector
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
goc3
on 18 Nov 2016
The test suite has been expanded.
Solution Comments
Show commentsGroup

Number Manipulation II
- 15 Problems
- 47 Finishers
- Mysterious digits operation (easy)
- Big numbers, repeated least significant digits
- Bit calculation
- Power Times (of the day)
- Equation Times (of the day)
- Consecutive Equation Times (of the day)
- Find out the Gray Code for a Given Binary Number
- Convert to Binary Coded Decimal
- Binary Neighbourhood
- Digital Neighbourhood
- There are 10 types of people in the world
- Big numbers, least significant digits
- Big numbers, repeated least significant digits
- De-primed
- Evened up (or not)
- With apologies to William Blake
Problem Recent Solvers582
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!