示例: str='ajsk123sjkl' A=isstrprop(str,'digit'); %A = % 0 0 0 0 1 1 1 0 0 0 0 B=str(A); %B =123 字符 C=str2num(B) %C=123 数字