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

110 visualizzazioni (ultimi 30 giorni)
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.

Risposte (2)

Steven Lord
Steven Lord il 18 Ott 2018
If you're using release R2018b or later, try the stackedplot function.

Jan
Jan il 21 Set 2015
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 Commento
Abdul Rehan Khan Mohammed
Abdul Rehan Khan Mohammed il 18 Ott 2018
Can you please share the code for this question, I am in the similar situation and have no idea how to do it.

Accedi per commentare.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by