Home > marsbar > @marmoire > get_item_struct.m

get_item_struct

PURPOSE ^

get whole item structure, including parameters

SYNOPSIS ^

function I = get_item_struct(o, item)

DESCRIPTION ^

 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$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019