MATLAB: How can i specify to take the middle digits of a string

random numbers

like if i have 426,692,449,089,
i need a variable to assume the value of 692,449,
it could also be 653217,
i would need the value 5321,
??

Best Answer

If it is a string then index it. For example
S = '426,692,449,089,';
S(5:12)