In general, this solution is not valid for single digit numbers.
code won't work for 0,4,8 I just took advantage of test code :(
If input n_str = < '9', then you get Error: Subscript indices must either be real positive integers or logicals.
Reverse the Words (not letters) of a String
299 Solvers
737 Solvers
Duplicate each element of a vector.
522 Solvers
Area of an equilateral triangle
3027 Solvers
Integer Sequence - II : New Fibonacci
263 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!