Home > marsbar > @marmoire > set_item_struct.m

set_item_struct

PURPOSE ^

set whole item structure, including parameters

SYNOPSIS ^

function o = set_item_struct(o, item, item_struct)

DESCRIPTION ^

 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$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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);

Generated on Wed 11-May-2022 15:34:44 by m2html © 2003-2019