Matlab: Don't show x-axis-labels in one of the subplots
I want to do the same like this here: matplotlib-share-x-axis-but-dont-show-x-axis-tick-labels-for-bo开发者_Go百科th-just-one
set(plot,'visible','off')
doesn't show any axis.
The answer is:
set(gca,'xtick',[1 2 3 4 5], 'xticklabel',{})
精彩评论