How to remove one x axis from 2 subplot
显示 更早的评论
I have these 2 subplots and I would like to share the x-axis for two plots.How can I do that?Thanks
1 个评论
Kirby Fears
2016-4-13
A similar question was asked and answered here: http://www.mathworks.com/matlabcentral/answers/59890-vertically-stacked-subplots-with-x-axis-labels-only-at-the-bottom
回答(1 个)
Azzi Abdelmalek
2016-4-13
h=findobj(gcf,'type','line')
set(h(2),'xticklabel','')
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!