tomwalters@0: % method of class @parameter 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: function name=gettext(param,i,inbox) tomwalters@0: % return the description text of the parameter with the entry number i. tomwalters@0: % if i is a string then return the full string of the probably abbreviated tomwalters@0: tomwalters@0: if nargin==1 tomwalters@0: name=param.name; tomwalters@0: return tomwalters@0: end tomwalters@0: tomwalters@0: if isnumeric(i) tomwalters@0: name=param.entries{i}.text; tomwalters@0: elseif ischar(i) tomwalters@0: if nargin==2 % search in all subsections tomwalters@0: inbox='all'; tomwalters@0: end tomwalters@0: nr=getentrynumberbytext(param,i,inbox); tomwalters@0: name=param.entries{nr}.text; tomwalters@0: end