% Useful string functions cellstr(str) : create a cell array of strings from str blanks(n) : create a string of n blanks deblank(str) : remove trailing blanks from str strtrim(str) : remove both leading and trailing blanks strjust(str,type) : justify the text in str to left, center, right depending on value of type. e.g., type = 'right' findstr(str1, str2) : find indices of a shorter string in a longer one. : return type is numeric (a double or array of doubles) strfind(str1, str2) : find indices of a shorter string str1 in str2. : return type is numeric (a double or array of doubles) strcmp(str1, str2) : true if str1 is equal to str2 strncmp(str1, str2, n) : true if first n characters in str1 and str2 are equal strcmpi(str1, str2) : true if str1 is equal to str2, ignoring case strmatch(str1, str2) : returns indices for which str1 appears in str2 strmatch(str1, str2, 'exact')) : returns exact matches only sscanf(str) : read the string under format control. deal(C)