Strings




check / find substring


check for substring

~isempty(strfind('Friday','day'))
 1  % True: substring 'day' appears in string 'Friday'

get position of substring
strfind('Friday','day')
 4  % substring 'day' appears at character position 4 in string 'Friday'



Replace sub-string


replace file ending '.txt' with '.csv'
strrep('mydata.txt','.txt','.csv')
  mydata.csv

remove file ending '.txt'
strrep('mydata.txt','.txt','')
  mydata





Subpages (3): Frequencies Join remove