In Matlab, how do I split a 6 digit number (possibly with leading zeros) into two entries of 3 numbers each?

I have a number, such as 008123, that I want to split into 008 and 123 in Matlab. The dividing by 1000 with remainder and floor will not work here because of the leading zeros. I have a long vector of these numbers, but all will have 6 digits. Help!

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 Q2A.ES - All rights reserved.