>> help isstrprop isstrprop - Determine whether string is of specified category This MATLAB function returns a logical array the same size as str containing logical 1 (true) where the elements of str belong to the specified category, and logical 0 (false) where they do not. tf = isstrprop('str', 'category')
>> 帮助 isstrprop isstrprop - 判决字符串属于那一类别 tf = isstrprop('str', 'category')
>>char([11 22 33 44 55 66 77 88 99]) % 此处的数值是 ASCII 码 ans = !,7BMXc >> char(55) % 其他是字符、符号 ans =7
A = [11 22 33 44 55 66 77 88 99] % ASCII码序列 B = char(A) % 将A序列的ASCII码转换为字符 a = isstrprop(B,'digit') % 判断字符串中个字符是否为数字
A = 11 22 33 44 55 66 77 88 99 B = !,7BMXc a = 0 0 0 0 1 0 0 0 0