strread读取既有字符又有数字的字符串。
[a,b,c,...] = strread(cstr,'format','param','value')
该函数使用指定的format和param/value的组合,从字符串cstr中读取数据。
例:
t = '11.4,av,b';
[a b c] = strread(t,'%f%q%q','delimiter',',');
a = 11.4 b = 'av' c = 'b'
strcmp用于比较串
例:
p = 'win';
a = strcmp(p,'yes');
a = false