Linking Graphs to Variables -- Data Source Properties
Plot objects enable you to link a MATLAB expression with properties that contain data. For example, the
lineseries object has data source properties associated with the
ZData properties. These properties are called
To use a data source property,
refreshdatafunction to update the plot object data.
refreshdata enables you to specify whether to use a variable in the base workspace or the workspace of the function from which you call
Data Source Example
The following example illustrates how to use this technique.
Changing the Size of Data Variables
If you change one data source property to a variable that contains data of a different dimension, you might cause the function to generate a warning and not render the graph until you have changed all data source properties to appropriate values.
|Plot Objects||Plot Objects and Backward Compatibility|
© 1994-2005 The MathWorks, Inc.