MATLAB Answers

How to remove one x axis from 2 subplot

177 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','')

  0 Comments

Sign in to comment.

Sign in to answer this question.