objS = struct(obj)
objS = struct(obj) converts all public properties of obj and saves them into objS struct.
obj
objS
spinw | spinw.copy