Home > freetb4matlab > plot > refreshdata.m

refreshdata

PURPOSE ^

% Evaluates any datasource properties of the current figure and updates

SYNOPSIS ^

function refreshdata (h, ws)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} refreshdata 
% @deftypefnx {Function File} {} refreshdata (@var{h})
% @deftypefnx {Function File} {} refreshdata (@var{h}, @var{ws})
% Evaluates any datasource properties of the current figure and updates
% the corresponding data.  If call with one or more arguments @var{h} is
% a scalar or array of figure handles which to refresh.  The data
% sources are by default evaluated in the 'base' workspace but can also
% be set in the 'caller' workspace.
%
% An example of the use of refreshdata is
%
% @example
% @group
% x = 0:0.1:10;
% y = sin (x);
% plot (x, y, 'ydatasource', 'y');
% for i = 1 : 100
%   pause(0.1)
%   y = sin (x + 0.1 * i);
%   refreshdata;
% end
% @end group
% @end example
% 
% @seealso{linkdata}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003