摘要:
S = ['abc', 'defg'; 'hi']S = abc defg hiwhos S Name Size Bytes Class S 3x4 24 char arrayThe following command returns a 3-by-1 cell array.c =cellstr(S)c = 'abc' 'defg' 'hi'whos c Name Size Bytes Class c 3x1 198 cell array 阅读全文
摘要:
TF = strcmp(string,string)TF = strcmp(string,cellstr)TF = strcmp(cellstr,cellstr)注:string: A single character string or n-by-1 array of strings; cellstr: A cell array of strings.Example: 1、strcmp('Yes', 'No') ans = 0 strcmp('Yes', 'Yes') a... 阅读全文