Write a function that accepts an integer and an index digit and returns a vector containing two integers which are the leading and trailing digits of the input integer, split after the index digit.
For example:
uncat(12345,3) should return [123 45]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers78
Suggested Problems
-
Swap the first and last columns
23369 Solvers
-
22049 Solvers
-
Project Euler: Problem 4, Palindromic numbers
1304 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14557 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
2087 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!