tomwalters@0: % tool tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org bleeck@3: tomwalters@0: tomwalters@0: function ret=extracttolist(list,delimiter) tomwalters@0: %usage: ret=extracttolist(list,delimiter) tomwalters@0: % returns a list of strings that are in 'list' and deliminited by delimiter tomwalters@0: tomwalters@0: nrwhere=findstr(list,delimiter); % 9 is tab! tomwalters@0: start=1; tomwalters@0: for i=1:length(nrwhere) tomwalters@0: stop=nrwhere(i)-1; tomwalters@0: ret{i}=list(start:stop); tomwalters@0: start=nrwhere(i); tomwalters@0: end tomwalters@0: tomwalters@0: % and the last one before the end of the line tomwalters@0: ret{i+1}=list(start:end);