Problem 2315. Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function.
Example
x = [123] y = [321]
NOTE: This is not x = [1, 2, 3]
This should work for all inputs.
Example
x = [ 96721] y = 12769
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Gareth Lee
on 26 Oct 2016
the function name of this problem is conflict with system function 'reverse', so can't be executed.
Srishti Saha
on 8 Aug 2018
Reverse is now a command on Matlab. Kindly change the name of the function here @Joseph Pauwels
goc3
on 10 Aug 2018
The function name has been updated. The problem should now be solvable.
Solution Comments
Show commentsProblem Recent Solvers89
Suggested Problems
-
1198 Solvers
-
Is my wife right? Now with even more wrong husband
1323 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
829 Solvers
-
convert matrix to single column
414 Solvers
-
341 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!