robj = resistor(rvalue), where rvalue is the resistance and R is the default name. rvalue must be a non-negative numeric scalar. robj = resistor(rvalue,rname) creates a robj resistor object with the resistance rvalue and the name rname.