How to draw a stacked subplots that share same X axis?

I'd like to draw multiple figures that share same X axis. It looks something like the following figures I copied from the website.
It should be notice that no space in Y direction between different figures like the following.

Answers (2)

Did you take a look in the FileExchange already? There are so many submissions concerning subplot that searching for this term will be useful, most likely.
Note, that subplot is actually a simple axes command with automatic positions. You can determine the positions manually, such that the bottom of the upper axes is on the top of the lower one. Simply use the 'Position' property when creating the AXES.

1 Comment

Can you please share the code for this question, I am in the similar situation and have no idea how to do it.

Sign in to comment.

Tags

Asked:

on 21 Sep 2015

Answered:

on 18 Oct 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!