Mar 19th, 2009

## Matlab Subplot with linked/connected axes

I recently had to make a Matlab™ subplot and wanted to link the axes of the two plots together, so that both graphs show the same range on their x-axis. Of course, there is a simple command for this in Matlab™: linkaxes. Detailed information about the command can be found on the Web-Documentation. The following code shows, how I did it in my script.