MATLAB: Group string based on charachter

problemstrings

Hi all If i have a string lets say a='1/23s' is there a way to take 1 and 23s seperately on some other variables so i can then extract only the numbers from them.

Best Answer

a='1/23s';
i = findstr(a,'/')
b = a(1:i-1)
c = a(i+1:end)