SETPROP Set property values in the label list LAB=SETPROP(LAB,PROP,ALLVAL) LAB=SETPROP(LAB,PROP,CATEGORY,VALUE) LAB=SETPROP(LAB,PROP) % make property content empty INPUT LAB label object whose list is used PROP property name ALLVAL cell array with values for all categories CATEGORY category specification (name, index or reg.exp) VAL single value (any type) OUTPUT LAB SDLAB object with updated list DESCRIPTION SETPROP sets the property PROP in the LAB.list. Two ways are possible: 1. Set values of all categories at once by providing cell array ALLVAL with one entry per category. If ALLVAL is not given, property is created and set to empty. 2. Set VALUE for a specific CATEGORY defined by index, name or regular expression. Multiple categories can be set with one command to the same VALUE. EXAMPLES: lab=SETPROP(lab,'marker',{'bx' 'r*' 'gs'}) % set all markers in the list lab lab=SETPROP(lab,'marker','banana','r*') % set marker for 'banana' lab=SETPROP(lab,'marker',2,'r*') % set marker for 2nd class lab=SETPROP(lab,'marker','/apple|banana','*') % set marker for 'apple' and 'banana' lab=SETPROP(lab,'size') % set size property to empty (create if needed) SEE ALSO GETPROP, GETPROPLIST, ISPROP, RMPROP