How to get the last field of a struct in MATLAB? -
take example,
a = struct('in',1,'out',2) b = struct('temperature',6,'light',5,'output',2)
how last field , value input?
the documentation struct says:
the common way access data in structure specifying name of field want reference.
in contrast array, elements accessed index -> position, struct field accessed fieldname -> name.
see how access matlab structure fields within loop? on how iterate on all fields of struct.
Comments
Post a Comment