To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
Hi I didn't use commands for strings in matlab so i have a word like 'displacement22' and i want to write '22' from this string, so what would i do?
No products are associated with this question.
s = 'displacement22' % Your string. theNumber = sscanf(s, 'displacement%d') % Extract the number.
s='displacement22' ; out=s(regexp(s ,'[0-9]'))