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