setfield
Set the value of the field of an object that has fields.
(u)=setfield(object, fieldname, fieldvalue)
Inputs
object An object or a srtucture array or an undefined object.
fieldname The name of the field to set.
fieldvalue The value of the field to set.
Outputs
u If the call is sucessful, the object whose field named fieldname has been set to fieldvalue .


Example
>>a.x=2
>>a.y=4
>>setfield(a,"z",10)
        x:      2
        z:      10
        y:      4

>>a
        x:      2
        y:      4

>>class A
      >var a, b
      >end
>>obj=new A()
b:
null
a:
null
>>obj
>>setfield(obj,"a",10)
b:
null
a:
        10

>>obj
b:
null
a:
        10

>>setfield(obj,"w",10)
Error The field w does not exist  in class MCLASS_A.

        Line 11 in \Main
Error in call to setfield
>>