get whole item structure, including parameters FORMAT I = get_item_struct(o, item) This is used internally, and might be useful for debugging o - object item - item name Returns I - item structure, with data in field 'data' and/or specified in field 'filename' $Id$
0001 function I = get_item_struct(o, item) 0002 % get whole item structure, including parameters 0003 % FORMAT I = get_item_struct(o, item) 0004 % 0005 % This is used internally, and might be useful for debugging 0006 % 0007 % o - object 0008 % item - item name 0009 % 0010 % Returns 0011 % I - item structure, with data in field 'data' and/or specified in 0012 % field 'filename' 0013 % 0014 % $Id$ 0015 0016 if ~item_exists(o, item) 0017 error('Item does not exist'); 0018 end 0019 I = getfield(o.items, item);