Next: , Up: Object Groups


15.2.8.1 Data sources in object groups

All of the group objects contain data source parameters. There are string parameters that contain an expression that is evaluated to update the relevant data property of the group when the refreshdata function is called.

— Function File: refreshdata ()
— Function File: refreshdata (h)
— Function File: refreshdata (h, ws)

Evaluates any datasource properties of the current figure and updates the corresponding data. If call with one or more arguments 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

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

See also: linkdata.