% -*- texinfo -*- % @deftypefn {Function File} {@var{hlink} =} linkprop (@var{h}, @var{prop}) % Links graphics object properties, such that a change in one is % propagated to the others. The properties to link are given as a % string of cell string array by @var{prop} and the objects containing % these properties by the handle array @var{h}. % % An example of the use of linkprops is % % @example % @group % x = 0:0.1:10; % subplot (1, 2, 1); % h1 = plot (x, sin (x)); % subplot (1, 2, 2); % h2 = plot (x, cos (x)); % hlink = linkprop ([h1, h2], @{'color','linestyle'@}); % set (h1, 'color', 'green'); % set (h2, 'linestyle', '--'); % @end group % @end example % % @end deftypefn