MATLAB: Extract integers from random strings

integerscanstring

Hi,
I have many strings composed by letters and numbers. Every string has this format 'randomword.integer'. I'd like to ignore the first part (word) and get the second (number). The first part keep changing so i can't use:
a= 'randomword.integer'
int=sscanf(a,'randomword.%d')
Any help?
Thanks in advance

Best Answer

sscanf(a, '%*[^.].%d')