How to remove one x axis from 2 subplot

89 次查看(过去 30 天)
I have these 2 subplots and I would like to share the x-axis for two plots.How can I do that?Thanks

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-13
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!

Translated by