Links and synchronizes the range of axes between plots.

## Inputs

h-vector
Vector of axes handles to link.
Type: double
Dimension: vector
option
Specifies the axis to link. Valid values are: 'x', 'y', 'z', 'xy', 'xz', 'yz', 'xyz' and 'off'. Option 'off' may be used to disable axes linking. If option is omitted, default value 'xyz' is used.
Type: string
Dimension: scalar

## Examples

figure;

ax1 = subplot(3, 1, 1);
plot(rand(10,2));

ax2 = subplot(3, 1, 2);
plot(rand(10,2));

ax3 = subplot(3, 1, 3);
plot(rand(10,2));

set(ax1,'xvisible','off')
set(ax2,'xvisible','off')

xlim([1 5.5]);
figure;

ax1 = subplot(1,3,1);
plot(rand(10,2));

ax2 = subplot(1,3,2);
plot(rand(10,2));

ax3 = subplot(1,3,3);
plot(rand(10,2));

set(ax2,'yvisible','off')
set(ax3,'yvisible','off')

ylim([0.1 0.8]);
x = 0:0.1:5;
y = cos(x);
y1 = sin(x);

figure;
ax1 = subplot(2, 2, 1);
plot(x, y);

ax2 = subplot(2, 2, 2);
plot(x, y);

ax3 = subplot(2, 2, 3);
plot(x, y);

ax4 = subplot(2, 2, 4);
plot(x, y);

xlim([-1 6]);
ylim([-1.5  1.5]);
ylim(axSec1(2), [-2 2]);
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);

figure;
ax1 = subplot(1,2,1);
surf(x, y, z);

ax2 = subplot(1,2,2);
surf(x, y, z);

zlim([0 1]);