Create write_wobj.m