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 data=getuserdata(param,text,inbox) tomwalters@0: % the whole struct can have an user entry and every part of the structure tomwalters@0: % as well. These can be used by the user for example for the 'other...' tomwalters@0: % radiobutton tomwalters@0: tomwalters@0: if nargin <2 tomwalters@0: data=param.userdata; tomwalters@0: else tomwalters@0: nr=getentrynumberbytext(param,text,inbox); tomwalters@0: if nr>0 tomwalters@0: % cont=param.entries; tomwalters@0: % nrent=length(cont); tomwalters@0: % for i=1:nrent tomwalters@0: % if strcmp(cont{i}.text,text) && strcmp(cont{i}.belongtobox,inbox) tomwalters@0: if isfield(data.cont{nr},'userdata') tomwalters@0: data=cont{nr}.userdata; tomwalters@0: else tomwalters@0: data=[]; tomwalters@0: end tomwalters@0: return tomwalters@0: else tomwalters@0: data='error'; tomwalters@0: disp('error in getuserdata: text not found'); tomwalters@0: end tomwalters@0: end tomwalters@0: