0
我有一个结果字符串,有时候保存非ascii值。这些非ASCII值导致麻烦,所以我需要检查它们在结果字符串中的存在。检查matlab中的非ascii字符
我试着用这两种方法
if (regexpi(result , ^\s\x{20}-\x{7e}))
display('non ascii');
end
和
if any(result < 128)
else
display('non ascii');
end
,但没有奏效。任何帮助是极大的赞赏。