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 tomwalters@0: tomwalters@0: function str=loadtextfile(name) tomwalters@0: % usage: str=loadtextfile(pfad,name) tomwalters@0: % loads the pfad,name in a structure of strings. one per line tomwalters@0: tomwalters@0: id=fopen(name,'rt'); tomwalters@0: %titel=fgetl(id); % in der ersten Zeile stehen die Namen der PArameter drin tomwalters@0: if id<=0 tomwalters@0: disp('File not found'); tomwalters@0: end tomwalters@0: tomwalters@0: ret=sprintf('\n'); tomwalters@0: str=[]; tomwalters@0: i=1; tomwalters@0: while ~feof(id) tomwalters@0: zeile=fgetl(id); tomwalters@0: str{i}=zeile; tomwalters@0: i=i+1; tomwalters@0: end tomwalters@0: fclose(id);