Mercurial > hg > aimmat
annotate aim-mat/tools/@parameter/gettext.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | 20ada0af3d7d |
children |
rev | line source |
---|---|
tomwalters@0 | 1 % method of class @parameter |
tomwalters@0 | 2 % |
bleeck@3 | 3 % (c) 2011, University of Southampton |
bleeck@3 | 4 % Maintained by Stefan Bleeck (bleeck@gmail.com) |
bleeck@3 | 5 % download of current version is on the soundsoftware site: |
bleeck@3 | 6 % http://code.soundsoftware.ac.uk/projects/aimmat |
bleeck@3 | 7 % documentation and everything is on http://www.acousticscale.org |
tomwalters@0 | 8 function name=gettext(param,i,inbox) |
tomwalters@0 | 9 % return the description text of the parameter with the entry number i. |
tomwalters@0 | 10 % if i is a string then return the full string of the probably abbreviated |
tomwalters@0 | 11 |
tomwalters@0 | 12 if nargin==1 |
tomwalters@0 | 13 name=param.name; |
tomwalters@0 | 14 return |
tomwalters@0 | 15 end |
tomwalters@0 | 16 |
tomwalters@0 | 17 if isnumeric(i) |
tomwalters@0 | 18 name=param.entries{i}.text; |
tomwalters@0 | 19 elseif ischar(i) |
tomwalters@0 | 20 if nargin==2 % search in all subsections |
tomwalters@0 | 21 inbox='all'; |
tomwalters@0 | 22 end |
tomwalters@0 | 23 nr=getentrynumberbytext(param,i,inbox); |
tomwalters@0 | 24 name=param.entries{nr}.text; |
tomwalters@0 | 25 end |