Home > marsbar > @marmoire > update_item_data.m

update_item_data

PURPOSE ^

updates data for item (sets data, flags change)

SYNOPSIS ^

function [o, errf] = update_item_data(o, item, data, filename)

DESCRIPTION ^

 updates data for item (sets data, flags change)
 FORMAT [o, errf] = update_item_data(o, item, data, filename)

 o        - object
 item     - name of item to update for
 data     - data to set 
 filename - filename for data
 
 Returns
 o        - object with data (probably) updated
 errf     - flag is 1 if data was not updated for some reason

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [o, errf] = update_item_data(o, item, data, filename)
0002 % updates data for item (sets data, flags change)
0003 % FORMAT [o, errf] = update_item_data(o, item, data, filename)
0004 %
0005 % o        - object
0006 % item     - name of item to update for
0007 % data     - data to set
0008 % filename - filename for data
0009 %
0010 % Returns
0011 % o        - object with data (probably) updated
0012 % errf     - flag is 1 if data was not updated for some reason
0013 %
0014 % $Id$
0015 
0016 if nargin < 2
0017   error('Need item to set to');
0018 end
0019 if nargin < 3
0020   data = NaN;
0021 end
0022 if nargin < 4
0023   filename = NaN;
0024 end
0025 
0026 [o errf] = do_set(o, item, 'update', data, filename);

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