converts properties into struct
Syntax
objS = struct(obj)
Description
objS = struct(obj) converts all public properties of obj and saves
them into objS struct.
objS = struct(obj)
objS = struct(obj) converts all public properties of obj and saves
them into objS struct.