天天看点

MATLAB strcmp()函数

strcmp() 比较2个字符串的大小      
s1=s2,strcmp(s1,s2) == 0;
s1>s2, strcmp(s1,s2) == 1;
s1<s2, strcmp(s1,s2) == -1;      

继续阅读