set whole item structure, including parameters FORMAT I = get_item_struct(o, item, item_struct) o - object item - item name item_struct - item structure Returns o - object with item structure set $Id$
0001 function o = set_item_struct(o, item, item_struct) 0002 % set whole item structure, including parameters 0003 % FORMAT I = get_item_struct(o, item, item_struct) 0004 % 0005 % o - object 0006 % item - item name 0007 % item_struct - item structure 0008 % 0009 % Returns 0010 % o - object with item structure set 0011 % 0012 % $Id$ 0013 0014 % We might consider error checking here. But hey. 0015 o.items = setfield(o.items, item, item_struct);