Splitting numbers in Matlab

I'd like to know how get the inputted number, 1234, and output the following:

x = 12
y = 34

In other words, I would like to set two variables equal to the first two numbers of the inputted value (12), and the the last two values of the inputted value (34), respectively.

Thanks!

p.s. This is for mathwork's Matlab.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories