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: tomwalters@0: tomwalters@0: function param=setuserdata(param,data,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 <3 tomwalters@0: param.userdata=data; tomwalters@0: else 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}.panel,inbox) tomwalters@0: cont{i}.userdata=data; tomwalters@0: param.entries=cont; tomwalters@0: return tomwalters@0: end tomwalters@0: end tomwalters@0: end tomwalters@0: tomwalters@0: tomwalters@0: