How to remove one x axis from 2 subplot

47 views (last 30 days)
Rita
Rita on 13 Apr 2016
Answered: Azzi Abdelmalek on 13 Apr 2016
I have these 2 subplots and I would like to share the x-axis for two plots.How can I do that?Thanks

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 13 Apr 2016
h=findobj(gcf,'type','line')
set(h(2),'xticklabel','')

Community Treasure Hunt

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

Start Hunting!