View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Link All Axes in Figure

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

3.5 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 1.34 KB File ID: #34476 Version: 1.0

Link All Axes in Figure


Dan K (view profile)


This is just a simple utility function to find all subplots in a figure and link their axes.

| Watch this File

File Information

Syntax is the same as linkaxes, except without passing in the handles to the axes to link. It replaces:
       ax(1) = subplot(2,1,1);
       ax(2) = subplot(2,1,2);
       clear ax


Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
08 Jul 2015 Frank Drop

Works as promised, saves a bit of typing. Super.

11 Sep 2014 pietro

pietro (view profile)


Contact us